/// <summary> /// 기안, 재기안, 수정기안 /// </summary> public void SetDraft() { Biz_Com_Approval_Info objApp = new Biz_Com_Approval_Info(); //결재완결처리 결재선이 하나인경우 완결처리 string sAppStatus = (ugrdAppLine.Rows.Count == 1) ? Biz_Type.app_status_complete : Biz_Type.app_status_draft; //기안 if (this.IDraft_Status == Biz_Type.app_draft_first) //최초기안 { bool blnRtn = objApp.TxrDraft(Server.HtmlEncode(divArea_M.InnerHtml), txtTitle.Text, this.IBiz_Type, sAppStatus, Biz_Type.app_draft_first, "", this.IDraftEmpID , this.GetAPPLine(), Request.Params); } else if (this.IDraft_Status == Biz_Type.app_draft_redraft) // 재기안 { bool blnRtn = objApp.TxrReDraft(this.IApp_Ref_Id, Server.HtmlEncode(divArea_M.InnerHtml), txtTitle.Text, this.IBiz_Type, sAppStatus, Biz_Type.app_draft_redraft, "", this.IDraftEmpID , this.GetAPPLine(), Request.Params); } else if (this.IDraft_Status == Biz_Type.app_draft_rewrite) // 재작성 { bool blnRtn = objApp.TxrReWrite(this.IApp_Ref_Id, this.IVersion_No, Server.HtmlEncode(divArea_M.InnerHtml), txtTitle.Text, this.IBiz_Type, sAppStatus, Biz_Type.app_draft_rewrite, "", this.IDraftEmpID , this.GetAPPLine(), Request.Params); } else if (this.IDraft_Status == Biz_Type.app_draft_modify) // 수정기안 { bool blnRtn = objApp.TxrMoDraft(this.IApp_Ref_Id, Server.HtmlEncode(divArea_M.InnerHtml), txtTitle.Text, this.IBiz_Type, sAppStatus, Biz_Type.app_draft_modify, "", this.IDraftEmpID , this.GetAPPLine(), Request.Params); } if (objApp.Transaction_Result == "Y") { this.IApp_Ref_Id = objApp.IApp_Ref_Id; this.IVersion_No = objApp.IVersion_No; if (this.IHISTORY_YN == "Y") { DoInsertUpdateReason(); } bool bRtn = this.SendMail(false); } else { this.IApp_Ref_Id = 0; this.IVersion_No = 0; } ltrScript.Text = JSHelper.GetAlertOpenerControlCallBackScript(objApp.Transaction_Message, this.IAPP_CCB, true); }