第三方集成打开业务审批待办列表,待办详情,代码示例:
public override voidAfterButtonClick(Core.DynamicForm.PlugIn.Args.AfterButtonClickEventArgs e)
{
base.AfterButtonClick(e);
if (e.Key.EqualsIgnoreCase("FButton"))
{
string acctID =this.View.Model.GetValue("FAcctID").ToString();
string username =this.View.Model.GetValue("FUserName").ToString();
string appId = this.View.Model.GetValue("FAppID").ToString();
string appSecret =this.View.Model.GetValue("FAppSecret").ToString();
int lcId = 2052;
//时间戳
long timestamp = DateTimeFormatUtils.CurrentTimeMillis() / 1000;
//签名
string[] arr = new string[] { acctID, username, appId, appSecret,timestamp.ToString() };
string sign =Kingdee.BOS.Util.SHA1Util.GetSignature(arr);
//业务审批列表:待办列表:Mob_WfToList,已办列表:Mob_WfDonelist,我发起的-进行中:Mob_WfRunningList,我发起的-已完成:Mob_WfCompletedList
string formid = "Mob_WfTodoList";
string formtype = "mobilelist"; string url = string.Format("http://172.17.1.117/k3cloud/mobile/k3cloudForPhone.html?acctid={0}&username={1}&appid={2}&sign={3}×tamp={4}&lcid={5}&formid={6}&formtype={7}", acctID, username, appId, sign, timestamp, lcId, formid, formtype);
this.View.GetControl("FUrl").SetValue(url);
this.View.UpdateView("FUrl");
formid ="MOB_DistributionWFBill";//单据详情跳转页面
formtype ="mobileform";
string pkid ="5cab1a32b049d5";//单据详情主键
//业务审批单据详情
url = string.Format("http://172.17.1.117/k3cloud/mobile/k3cloudForPhone.html?acctid={0}&username={1}&appid={2}&sign={3}×tamp={4}&lcid={5}&formid={6}&formtype={7}&pkid={8}",acctID, username, appId, sign, timestamp, lcId, formid, formtype, pkid);
this.View.GetControl("F_kd_Url").SetValue(url);
this.View.UpdateView("F_kd_Url");
}
第三方集成打开业务审批待办列表,待办详情,代码示例:
本文2024-09-23 04:15:52发表“云星空知识”栏目。
本文链接:https://wenku.my7c.com/article/kingdee-k3cloud-164187.html