protected void Btn_A4_Click(object sender, EventArgs e) { PageContent = Contract_LDZJ_Change.GetHtmlContent(UID, documentType, "A4"); PageContent = Contract_LDZJ_Change.GetHtmlExchange(UID, PageContent, documentType); PageContent = Contract_LDZJ_Change.ClearHtmlExchange(PageContent); }
protected void Btn_Create_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(UID) || string.IsNullOrEmpty(PageContent)) { ClientScript.RegisterStartupScript(Page.GetType(), "", "<script language=javascript>layer.msg('操作失败,请重新登录!');</script>"); return; } Btn_Create.Visible = false; //判断是否审批中 if (!isApprove) { ClientScript.RegisterStartupScript(Page.GetType(), "", "<script language=javascript>layer.msg('操作失败:合同审批中!');</script>"); return; } else { PageContent = Contract_LDZJ_Change.GetHtmlContent(UID, documentType, documentSize, false); PageContent = Contract_LDZJ_Change.GetHtmlExchange(UID, PageContent, documentType); PageContent = Contract_LDZJ_Change.ClearHtmlExchange(PageContent); //保存合同 bool ISOK = cidal.CreateContract(UID, PageContent); string result = ISOK ? "保存成功:请在【合同打印】里进行查看打印" : "生成失败"; ClientScript.RegisterStartupScript(Page.GetType(), "", "<script language=javascript>layer.msg('" + result + "');</script>"); } }
private void InitData() { PageContent = Contract_LDZJ_Change.GetHtmlContent(UID, documentType, documentSize); PageContent = Contract_LDZJ_Change.GetHtmlExchange(UID, PageContent, documentType); PageContent = Contract_LDZJ_Change.GetPledgeMovable(UID, true, PageContent); PageContent = Contract_LDZJ_Change.GetPledgeMovableExchange(UID, PageContent); //房地产抵押 PageContent = Contract_LDZJ_Change.GetFingerExchange(UID, PageContent); //指纹 PageContent = Contract_LDZJ_Change.ClearHtmlExchange(PageContent); }
private void InitData() { PageContent = Contract_LDZJ_Change.GetHtmlContent(UID, documentType, documentSize); PageContent = Contract_LDZJ_Change.GetHtmlExchange(UID, PageContent, documentType); PageContent = Contract_LDZJ_Change.ClearHtmlExchange(PageContent); }