//public new string AppID = "2004"; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { InitStartDeptment(); string instId = Request.QueryString["id"]; if (string.IsNullOrEmpty(instId)) { FormId = BPMHelp.GetSerialNumber("ERP_SA_"); FormTitle = ContractApproval_Common.GetErpFormTitle(this);//设置标题 StartDeptId = ddlDepartName.SelectedItem.Value; if (Pkurg.PWorldBPM.Business.BIZ.ERP.ERP_Common.IsExsitRunFlow(Request["erpFormId"], ERP_WF_T_Name.ERP_SupplementalAgreement)) { ERP_CallbackResultType resultType = new ContractApproval_Service().NotifyStartAdvance(Request["erpFormId"], true); ScriptManager.RegisterStartupScript(Page, Page.GetType(), "ajax", "alert('" + ConstString.RepeatAlertTip_BPM + "'); window.opener=null;window.open('', '_self', '');window.close();", true); return; } } else { WorkFlowInstance info = new WF_WorkFlowInstance().GetWorkFlowInstanceById(instId); FormId = info.FormId; FormTitle = info.FormTitle; InitFormData(); //Countersign1.CounterSignDeptId = StartDeptId; } //detailContract.InnerHtml = string.Format("<a href='{0}'>原合同详细信息</a>", SupplementalAgreement_Common.GetPoUrl()); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //初始化起始部门 InitStartDeptment(); string instId = Request.QueryString["id"]; if (string.IsNullOrEmpty(instId)) { //得到序列号(FormId) FormId = BPMHelp.GetSerialNumber("ERP_JS_"); //设置标题 FormTitle = ContractApproval_Common.GetErpFormTitle(this); StartDeptId = ddlDepartName.SelectedItem.Value; //判断该流程是否存在【根据erpFormId判断】 if (Pkurg.PWorldBPM.Business.BIZ.ERP.ERP_Common.IsExsitRunFlow(Request["erpFormId"], ERP_WF_T_Name.ERP_ContractFinalAccount)) { ERP_CallbackResultType resultType = new ERP_ContractFinalAccount_Service().NotifyStartAdvance(Request["erpFormId"], true); ScriptManager.RegisterStartupScript(Page, Page.GetType(), "ajax", "alert('" + ConstString.RepeatAlertTip + "'); window.opener=null;window.open('', '_self', '');window.close();", true); return; } } else { WorkFlowInstance info = new WF_WorkFlowInstance().GetWorkFlowInstanceById(instId); FormId = info.FormId; FormTitle = info.FormTitle; //初始化表单数据 InitFormData(); } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { //throw new Exception("这有错!!!"); InitStartDeptment(); string instId = Request.QueryString["id"]; if (string.IsNullOrEmpty(instId)) { FormId = BPMHelp.GetSerialNumber("ERP_HT_"); FormTitle = ContractApproval_Common.GetErpFormTitle(this);//设置标题 StartDeptId = ddlDepartName.SelectedItem.Value; if (Pkurg.PWorldBPM.Business.BIZ.ERP.ERP_Common.IsExsitRunFlow(Request["erpFormId"], ERP_WF_T_Name.ERP_ContractApproval)) { ERP_CallbackResultType resultType = new ContractApproval_Service().NotifyStartAdvance(Request["erpFormId"], true); ScriptManager.RegisterStartupScript(Page, Page.GetType(), "ajax", "alert('" + ConstString.RepeatAlertTip_BPM + "'); window.opener=null;window.open('', '_self', '');window.close();", true); return; } } else { WorkFlowInstance info = new WF_WorkFlowInstance().GetWorkFlowInstanceById(instId); FormId = info.FormId; FormTitle = info.FormTitle; if (!InitFormData(FormId)) { return; } SetUserControlInstance(); Countersign1.CounterSignDeptId = StartDeptId; } } }