protected void btnSave_Click(object sender, EventArgs e) { string CodeType = HidCodeType.Value; string SingleProjectID = HidSingleProjectID.Value; //1=ONLINE_CHECK 在线预验收 //2=WINRECV 窗口接收 //3=CHECK 业务审核 T_ReadyCheckBook_BLL Bll = new T_ReadyCheckBook_BLL(); T_ReadyCheckBook_MDL Mdl = new T_ReadyCheckBook_MDL(); Mdl.SingleProjectID = ConvertEx.ToInt(SingleProjectID); Mdl.ReadyCheckBookCode = ReadyCheckBookCode.Text; Mdl.EndDate = System.DateTime.Now;// ConvertEx.ToDate(EndDate.Text); Mdl.zljddw = zljddw.Text.Trim(); Mdl.ArchiveUser_Tel = ArchiveUser_Tel.Text.Trim(); Mdl.ArchiveUserName = ArchiveUserName.Text.Trim(); Mdl.jsdwfzr_Name = jsdwfzr_Name.Text.Trim(); Mdl.jsdwfzr_Tel = jsdwfzr_Tel.Text.Trim(); Mdl.BeginDate = ConvertEx.ToDate(BeginDate.Text); Mdl.CreateTime = DateTime.Now; Mdl.CreateUserID = ConvertEx.ToInt(Session["UserID"]); Mdl.CodeType = CodeType; List <T_ReadyCheckBook_MDL> ltMdl = Bll.GetModelList("SingleProjectID=" + SingleProjectID + " AND CodeType='" + CodeType + "'"); if (ltMdl.Count > 0) { Mdl.ReadyCheckBookID = ltMdl[0].ReadyCheckBookID; Bll.Update(Mdl); } else { Bll.Add(Mdl); } //更新案卷审核人 BLL.T_Archive_BLL archiveBLL = new T_Archive_BLL(); archiveBLL.UpdateSHR(ConvertEx.ToInt(SingleProjectID), Session["UserName"].ToString()); if (HidCodeType.Value == "3") //科室负责人审核 打印预验收核发申请单 { string url = "../ViewReport.aspx?strWhere=SingleProjectID=" + HidSingleProjectID.Value + "&ReportCode=yuyanshou_sqd"; ClientScript.RegisterStartupScript(Page.GetType(), "open12", "<script type='text/javascript'>window.close();openCommonWindowScroll('" + url + "',800,600);</script>"); } else { Response.Write("<script>javascript:window.close();</script>"); } }
protected void Page_Load(object sender, EventArgs e) { Ajax.Utility.RegisterTypeForAjax(typeof(SubmittedInfo)); singleProjectID = DNTRequest.GetQueryString("singleProjectID"); //工程ID reportType = DNTRequest.GetQueryString("reportType"); //报表类型 if (!IsPostBack) { T_SingleProject_MDL singMDL = singleBLL.GetModel(ConvertEx.ToInt(singleProjectID)); if (singMDL != null) { ReadyCheckBookCode.Text = singMDL.gcbm; jsdw.Text = singMDL.jsdw; } if (string.Compare(reportType, "rkz", true) == 0) { //ltTitle.Text = SystemSet._APPAREA + "建设工程档案认可意见书"; ltReadyCheckBookCode.Text = "预验收编号:"; ReadyCheckBookCode.labelTitle = ltReadyCheckBookCode.Text; TableRowShow(7, Table1.Rows.Count); } else if (string.Compare(reportType, "zms", true) == 0) { //ltTitle.Text = SystemSet._APPAREA + "建设工程档案移交证明书"; ltReadyCheckBookCode.Text = "验收编号:"; ReadyCheckBookCode.labelTitle = ltReadyCheckBookCode.Text; TableRowShow(2, 7); } else if (string.Compare(reportType, "zrs", true) == 0) { //ltTitle.Text = SystemSet._APPAREA + "建设工程档案移交证明书"; ltReadyCheckBookCode.Text = "责任书编号:"; ReadyCheckBookCode.labelTitle = ltReadyCheckBookCode.Text; TableRowShow(2, Table1.Rows.Count); } string strWhere = "SingleProjectID='" + singleProjectID + "' and lower(CodeType)='" + reportType.ToLower() + "'"; IList <T_ReadyCheckBook_MDL> ltMdl = readBLL.GetModelList(strWhere); if (ltMdl != null && ltMdl.Count > 0) { T_ReadyCheckBook_MDL readMDL = ltMdl[0]; txtTotalScroll.Text = ConvertEx.ToString(readMDL.TOTAL_SCROLL); txtCharacterScroll.Text = ConvertEx.ToString(readMDL.CHARACTER_SCROLL); txtPicScroll.Text = ConvertEx.ToString(readMDL.PIC_SCROLL); txtPhotoPageCount.Text = ConvertEx.ToString(readMDL.PHOTO_COUNT); txtRadioCount.Text = ConvertEx.ToString(readMDL.RADIO_COUNT); txtOtherMaterial.Text = readMDL.OTHER_MATERIAL; txtDirectoryScroll.Text = ConvertEx.ToString(readMDL.Directory_SCROLL); txtDirectoryPage.Text = ConvertEx.ToString(readMDL.Directory_PAGE_COUNT); ReadyCheckBookCode.Text = readMDL.ReadyCheckBookCode; jsdwfzr_Name.Text = readMDL.jsdwfzr_Name; jsdwfzr_Tel.Text = readMDL.jsdwfzr_Tel; ArchiveUserName.Text = readMDL.ArchiveUserName; ArchiveUser_Tel.Text = readMDL.ArchiveUser_Tel; ViewState["objModel"] = readMDL; } else { DataSet ds = new T_Other_BLL().GetArchiveInfo(singleProjectID); if (ds.Tables.Count > 0) { DataTable table = ds.Tables[0]; txtTotalScroll.Text = Common.ConvertEx.ToString(table.Rows[0]["archiveCount"]); //案卷总卷数 txtCharacterScroll.Text = Common.ConvertEx.ToString(table.Rows[0]["wz"]); //文字 卷数 txtPicScroll.Text = Common.ConvertEx.ToString(table.Rows[0]["tzz"]); //图纸 卷数 } } } }