22
This commit is contained in:
parent
f5d4b6a1ba
commit
fc29be4a38
@ -15,6 +15,7 @@ using Kingdee.BOS.Log;
|
|||||||
using Kingdee.BOS.Orm;
|
using Kingdee.BOS.Orm;
|
||||||
using Kingdee.BOS.Orm.DataEntity;
|
using Kingdee.BOS.Orm.DataEntity;
|
||||||
using Kingdee.BOS.ServiceHelper;
|
using Kingdee.BOS.ServiceHelper;
|
||||||
|
using Kingdee.BOS.Util;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
@ -22,14 +23,14 @@ using System.Data;
|
|||||||
using System.Linq;
|
using System.Linq;
|
||||||
namespace Pilot_KD_Parino.Sal_Order
|
namespace Pilot_KD_Parino.Sal_Order
|
||||||
{
|
{
|
||||||
[Description("下推生成销售出库单及联动生成其他单的插件")]
|
[Description("下推生成销售出库单及联动生成其他单的插件"), HotUpdate]
|
||||||
public class PushSaleOutBillPlugIn : AbstractDynamicFormPlugIn // AbstractListPlugIn
|
public class PushSaleOutBillPlugIn : AbstractDynamicFormPlugIn // AbstractListPlugIn
|
||||||
{
|
{
|
||||||
long sScrId = 0;
|
long sScrId = 0;
|
||||||
string sScrBillNo = "";
|
string sScrBillNo = "";
|
||||||
public override void BarItemClick(BarItemClickEventArgs e)
|
public override void AfterBarItemClick(AfterBarItemClickEventArgs e)
|
||||||
{
|
{
|
||||||
base.BarItemClick(e);
|
base.AfterBarItemClick(e);
|
||||||
long sOutId = 0;//珠海分布式调出单单号内码
|
long sOutId = 0;//珠海分布式调出单单号内码
|
||||||
string sOutBillNo = "";//珠海分布式调出单单号
|
string sOutBillNo = "";//珠海分布式调出单单号
|
||||||
bool flag = true;
|
bool flag = true;
|
||||||
@ -37,40 +38,49 @@ namespace Pilot_KD_Parino.Sal_Order
|
|||||||
long sEntryId = 0;
|
long sEntryId = 0;
|
||||||
long slevel = 2;
|
long slevel = 2;
|
||||||
long sId = 0;
|
long sId = 0;
|
||||||
this.View.ShowMessage(e.BarItemKey);
|
//this.View.ShowMessage("669977");
|
||||||
return;
|
|
||||||
|
|
||||||
//if (e.BarItemKey.Equals("tbPushSalOut111", StringComparison.OrdinalIgnoreCase))
|
if (e.BarItemKey.Equals("tbPushSalOut111", StringComparison.OrdinalIgnoreCase))
|
||||||
//{
|
{
|
||||||
// this.View.ShowMessage("就是这个按钮");
|
var FEntity = this.View.Model.DataObject;
|
||||||
// return;
|
|
||||||
// ListSelectedRowCollection rows = this.ListView.SelectedRowsInfo;
|
var fid = FEntity.GetPrimaryKeyValue();
|
||||||
// List<string> pkIds = new List<string>();
|
var json = JsonUtil.Serialize(FEntity);
|
||||||
// List<object> pkEntryIds = new List<object>();
|
Logger.Error("FEntity",json,new Exception());
|
||||||
// if (rows.Count <= 0)
|
var id = FEntity["id"];
|
||||||
// {
|
var FSALEORGID = FEntity["SaleOrgId"];
|
||||||
// this.View.ShowMessage("请选择对应的发货通知单!!!");
|
|
||||||
// return;
|
|
||||||
// }
|
this.View.ShowMessage("就是这个按钮"+ id);
|
||||||
// foreach (var row in rows)
|
|
||||||
// {
|
return;
|
||||||
// sBillNo = row.BillNo.ToString();//发货通知单号
|
//ListSelectedRowCollection rows = this.ListView.SelectedRowsInfo;
|
||||||
// sId = Convert.ToInt64(row.PrimaryKeyValue);//发货通知单ID
|
//List<string> pkIds = new List<string>();
|
||||||
// sEntryId = Convert.ToInt64(row.EntryPrimaryKeyValue);//发货通知单ID
|
//List<object> pkEntryIds = new List<object>();
|
||||||
// string sSql = "select FID from T_SAL_DELIVERYNOTICEENTRY where FID= " + sId + " and FENTRYID= " + sEntryId + " and abs(FBaseUnitQty) > abs(FBASEJOINOUTQTY) ";
|
//if (rows.Count <= 0)
|
||||||
// sSql = String.Format(@"/*dialect*/" + sSql);
|
//{
|
||||||
// var dt = DBServiceHelper.ExecuteDynamicObject(this.Context, sSql);
|
// this.View.ShowMessage("请选择对应的发货通知单!!!");
|
||||||
// if (dt.Count > 0)
|
// return;
|
||||||
// {
|
//}
|
||||||
// string getSourceSql = "select FID from T_SAL_DELIVERYNOTICE where FBILLNO='" + sBillNo + "'";
|
//foreach (var row in rows)
|
||||||
// IOperationResult result = Invoke("SAL_DELIVERYNOTICE", "SAL_OUTSTOCK", getSourceSql, "ad0779a4685a43a08f08d2e42d7bf3e9");
|
//{
|
||||||
// }
|
// sBillNo = row.BillNo.ToString();//发货通知单号
|
||||||
// }//进入下一个循环生成下一个系列的分布式调出单
|
// sId = Convert.ToInt64(row.PrimaryKeyValue);//发货通知单ID
|
||||||
// if (flag)
|
// sEntryId = Convert.ToInt64(row.EntryPrimaryKeyValue);//发货通知单ID
|
||||||
// {
|
// string sSql = "select FID from T_SAL_DELIVERYNOTICEENTRY where FID= " + sId + " and FENTRYID= " + sEntryId + " and abs(FBaseUnitQty) > abs(FBASEJOINOUTQTY) ";
|
||||||
// this.View.ShowMessage("生成对应系列的分布式调出单完成!!!");
|
// sSql = String.Format(@"/*dialect*/" + sSql);
|
||||||
// }
|
// var dt = DBServiceHelper.ExecuteDynamicObject(this.Context, sSql);
|
||||||
//}
|
// if (dt.Count > 0)
|
||||||
|
// {
|
||||||
|
// string getSourceSql = "select FID from T_SAL_DELIVERYNOTICE where FBILLNO='" + sBillNo + "'";
|
||||||
|
// IOperationResult result = Invoke("SAL_DELIVERYNOTICE", "SAL_OUTSTOCK", getSourceSql, "ad0779a4685a43a08f08d2e42d7bf3e9");
|
||||||
|
// }
|
||||||
|
//}//进入下一个循环生成下一个系列的分布式调出单
|
||||||
|
//if (flag)
|
||||||
|
//{
|
||||||
|
// this.View.ShowMessage("生成对应系列的分布式调出单完成!!!");
|
||||||
|
//}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
private IOperationResult Invoke(string source, string target, string getSourceSql, string sargetBillTypeId)
|
private IOperationResult Invoke(string source, string target, string getSourceSql, string sargetBillTypeId)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user