55 lines
1.7 KiB
C#
55 lines
1.7 KiB
C#
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); }
|
||
}
|
||
|
||
|
||
}
|
||
}
|