添加项目文件。
This commit is contained in:
95
aoyuPlugIn/汇威/JJ_show_yggzmx.cs
Normal file
95
aoyuPlugIn/汇威/JJ_show_yggzmx.cs
Normal file
@@ -0,0 +1,95 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.ComponentModel;
|
||||
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;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.ComponentModel;
|
||||
using Kingdee.BOS.Core.DynamicForm.PlugIn;
|
||||
using Kingdee.BOS.Core.DynamicForm.PlugIn.Args;
|
||||
|
||||
using Kingdee.BOS;
|
||||
using Kingdee.BOS.Util;
|
||||
using Kingdee.BOS.Core.Bill.PlugIn;
|
||||
using Kingdee.BOS.Orm.DataEntity;
|
||||
using Kingdee.BOS.Core.Metadata.EntityElement;
|
||||
using Kingdee.BOS.Core.SqlBuilder;
|
||||
using Kingdee.BOS.Core.Metadata;
|
||||
using Kingdee.BOS.ServiceHelper;
|
||||
|
||||
namespace aoyuPlugIn
|
||||
{
|
||||
|
||||
[Description("显示员工工资明细")]
|
||||
public class JJ_show_yggzmx : AbstractDynamicFormPlugIn
|
||||
{
|
||||
string _ygID = "";
|
||||
string _month = "";
|
||||
string _year = "";
|
||||
string _day = "";
|
||||
public override void AfterBindData(EventArgs e)
|
||||
{
|
||||
base.AfterBindData(e);
|
||||
try
|
||||
{
|
||||
Int64 ygID = Convert.ToInt64(this.View.OpenParameter.GetCustomParameter("ygid"));
|
||||
_ygID = ygID.ToString();
|
||||
string y = this.View.OpenParameter.GetCustomParameter("FYEAR").ToString();
|
||||
_year = y;
|
||||
string m = this.View.OpenParameter.GetCustomParameter("FMONTH").ToString();
|
||||
_month = m;
|
||||
_day = this.View.OpenParameter.GetCustomParameter("FDAY").ToString();
|
||||
|
||||
loadData();
|
||||
|
||||
|
||||
|
||||
}
|
||||
catch (Exception ex) { this.View.ShowMessage("加载数据时发生错误中为:" + ex.Message); }
|
||||
//this.View.ShowMessage(mid.ToString());
|
||||
|
||||
}
|
||||
void loadData()
|
||||
{
|
||||
show_yg_mx();//按员工显示
|
||||
|
||||
}
|
||||
//按员工显示
|
||||
//按日期显示
|
||||
//填写员工姓名
|
||||
void show_yg_mx()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (_day != "") return;
|
||||
this.View.Model.SetValue("FRG", 0);
|
||||
this.View.UpdateView("FRG");
|
||||
|
||||
this.View.Model.SetValue("FYGNO", _ygID);
|
||||
this.View.UpdateView("FYGNO");
|
||||
this.View.UpdateView("FYGNM");
|
||||
this.View.Model.SetValue("FYEAR", _year);
|
||||
this.View.UpdateView("FYEAR");
|
||||
this.View.Model.SetValue("FMONTH", _month);
|
||||
this.View.UpdateView("FMONTH");
|
||||
}
|
||||
catch (Exception ex) { this.View.ShowMessage("加载数据时发生错误中为:" + ex.Message); }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user