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>"); } }
/// <summary> /// 保存 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void btnSave_Click(object sender, EventArgs e) { T_ReadyCheckBook_MDL readMDL = ViewState["objModel"] as T_ReadyCheckBook_MDL; if (readMDL == null) { readMDL = new T_ReadyCheckBook_MDL(); } if (string.Compare(reportType, "zms", true) == 0) { readMDL.TOTAL_SCROLL = ConvertEx.ToInt(txtTotalScroll.Text); readMDL.CHARACTER_SCROLL = ConvertEx.ToInt(txtCharacterScroll.Text); readMDL.PIC_SCROLL = ConvertEx.ToInt(txtPicScroll.Text); readMDL.PHOTO_COUNT = ConvertEx.ToInt(txtPhotoPageCount.Text); readMDL.RADIO_COUNT = ConvertEx.ToInt(txtRadioCount.Text); readMDL.OTHER_MATERIAL = txtOtherMaterial.Text.Trim(); readMDL.Directory_SCROLL = ConvertEx.ToInt(txtDirectoryScroll.Text); readMDL.Directory_PAGE_COUNT = ConvertEx.ToInt(txtDirectoryPage.Text); } if (string.Compare(reportType, "rkz", true) == 0) { readMDL.jsdwfzr_Name = jsdwfzr_Name.Text; readMDL.jsdwfzr_Tel = jsdwfzr_Tel.Text; readMDL.ArchiveUserName = ArchiveUserName.Text; readMDL.ArchiveUser_Tel = ArchiveUser_Tel.Text; } readMDL.ReadyCheckBookCode = ReadyCheckBookCode.Text.Trim(); readMDL.SingleProjectID = ConvertEx.ToInt(singleProjectID); readMDL.EndDate = System.DateTime.Now; readMDL.BeginDate = System.DateTime.Now; readMDL.CreateTime = DateTime.Now; readMDL.CreateUserID = Common.Session.GetSessionInt("UserID"); readMDL.CodeType = reportType; if (ViewState["objModel"] != null) { readBLL.Update(readMDL); } else { readBLL.Add(readMDL); } Common.MessageBox.CloseLayerOpenWeb(this.Page); }