Exemplo n.º 1
0
        private void InitData()
        {
            Hashtable ht = DataFactory.SqlDataBase().GetHashtableById("Contract_History", "HUID", this.HUID);

            if (ht.Count > 0 && ht != null)
            {
                StringBuilder sb = new StringBuilder();
                sb.AppendFormat("SELECT DocumentType FROM View_Contract WHERE UID='{0}'", ht["UID"].ToString());
                object ContractType = DataFactory.SqlDataBase().GetObjectValue(sb);
                CssUrl      = string.Format("<link href=\"/css/{0}.css\" rel=\"stylesheet\" /> <link href=\"/css/{0}_Print.css\" media=\"print\" rel=\"stylesheet\" /> ", ContractType);
                PageContent = ht["CONTRACTCONTENT"].ToString();
                PageContent = Microsoft.JScript.GlobalObject.unescape(PageContent);
                PageContent = Contract_Manage.GetReportExchange(ht["UID"].ToString(), PageContent);
                PageContent = Contract_Manage.ClearHtmlExchange(PageContent);//清除标记
            }
        }
Exemplo n.º 2
0
        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_Manage.GetHtmlContent(UID, documentType, documentSize, false);
                //保存合同
                bool   ISOK   = cidal.CreateContract(UID, PageContent);
                string result = ISOK ? "保存成功:请在【合同打印】里进行查看打印" : "生成失败";

                ClientScript.RegisterStartupScript(Page.GetType(), "", "<script language=javascript>layer.msg('" + result + "');</script>");
            }
        }
Exemplo n.º 3
0
 protected void Btn_A3_Click(object sender, EventArgs e)
 {
     PageContent = Contract_Manage.GetHtmlContent(UID, documentType, "A3");
 }
Exemplo n.º 4
0
        private void InitData()
        {
            //Contract_Manage.CreateMortgageFile(UID, "1");

            PageContent = Contract_Manage.GetHtmlContent(UID, documentType, documentSize);
        }