添加项目文件。

This commit is contained in:
liangjunyu
2025-06-20 09:17:36 +08:00
parent 4aee212079
commit 69446e2dda
43 changed files with 5544 additions and 0 deletions

View File

@@ -0,0 +1,59 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System;
using System.ComponentModel;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Kingdee.BOS;
using Kingdee.BOS.Core.Bill.PlugIn;
using Kingdee.BOS.Core.Bill.PlugIn.Args;
using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
using Kingdee.BOS.Core.Metadata;
using Kingdee.BOS.Core.Metadata.EntityElement;
using Kingdee.BOS.Core.SqlBuilder;
using Kingdee.BOS.Orm.DataEntity;
using Kingdee.BOS.ServiceHelper;
using Kingdee.BOS.Util;
using Kingdee.BOS.Core.DynamicForm;
using Kingdee.BOS.Core.DynamicForm.PlugIn;
namespace aoyuPlugIn
{
[Description("补数单反写生产订单")]
public class bsdFXscdd : AbstractBillPlugIn
{
//单据头菜单点击
public override void BarItemClick(BarItemClickEventArgs e)
{
base.BarItemClick(e);
string t = "";
if (e.BarItemKey == "tbSplitApprove"||e.BarItemKey== "tbApprove")
{
t = this.View.Model.GetValue("FBillNo").ToString();
fx_scdds(t,"1");
} else if (e.BarItemKey == "tbReject") {
t = this.View.Model.GetValue("FBillNo").ToString();
fx_scdds(t,"0");
}
}
//计算前先删除当前数据
void fx_scdds(string fbillno, string isja)
{
try
{
var sSql = String.Format("EXEC hw_fx_bs " + fbillno + "," + isja);
var dr = DBServiceHelper.ExecuteDynamicObject(this.Context, sSql);
}
catch (Exception ex)
{ this.View.ShowMessage("反写生产订单补数时发生错误为:" + ex.Message); }
}
}
}