Files
Gatedge.HuiWei.BOS.JJGZMJ/aoyuPlugIn/汇威/MJ_jdhb.cs
2025-06-20 09:17:36 +08:00

55 lines
1.7 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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 MJ_jdhb : AbstractBillPlugIn
{
//表单菜单事件
public override void BarItemClick(BarItemClickEventArgs e)
{
base.BarItemClick(e);
//this.View.ShowMessage("Hello World" + e.BarItemKey.ToString());
string t = "";
if (e.BarItemKey == "tbSplitApprove"||e.BarItemKey== "tbApprove")//审核
{
t =this.View.Model.GetValue("FBillNo").ToString();
fxjdb(t, "1");
}else if (e.BarItemKey == "tbReject")//反审核
{
t = this.View.Model.GetValue("FBillNo").ToString();
fxjdb(t, "0");
}
}
//反写进度表
void fxjdb(string fbillno, string issh)
{
try
{
var sSql = String.Format("EXEC hw_mj_jdhbfxjdd " + fbillno + "," + issh);
var dr = DBServiceHelper.ExecuteDynamicObject(this.Context, sSql);
}
catch (Exception ex) { this.View.ShowMessage("反写进度表时发生错误为:" + ex.Message); }
}
}
}