/// <summary> /// 페이지 초기화 /// </summary> public void SetInitForm() { Biz_Com_Code_Info objCode = new Biz_Com_Code_Info(); objCode.GetApprovalLineType(ddlLineType, 0, false, 100); txtDocNo.Style.Add(HtmlTextWriterStyle.TextDecoration, "none"); btnDraft.OnClientClick = "return isConfirmDraft('D');"; // 최초기안, 재기안, 수정기안 btnSanction.OnClientClick = "return isConfirmDraft('S');"; // 결재 btnReturn.OnClientClick = "return isConfirmDraft('R');"; // 반려 // 원래기안 문서의 정보를 읽어옴 lblAppTitle.Text = Biz_Com_Approval_Info.GetDraftTitle(this.IBiz_Type); }
public ApprovalProcessSmilk(HttpContext context) { this.context = context; this.bizType = context.Request.Params.Get("BIZ_TYPE"); this.legacyKey = ""; this.legacyType = LEGACYTYPE; this.appForm = APPFORM; this.userId = context.Request.Params.Get("DRAFT_EMP_ID"); this.makeTime = System.DateTime.Today.ToString("yyyyMMddhhmmss"); this.appTitle = Biz_Com_Approval_Info.GetDraftTitle(this.bizType);; this.bodyInfo = ""; this.appLine = ""; this.esttermRefId = context.Request.Params.Get("ESTTERM_REF_ID"); this.kpiRefId = context.Request.Params.Get("KPI_REF_ID"); this.esttermYmd = context.Request.Params.Get("YMD"); Users userInfo = new Users(int.Parse(this.userId)); this.userCode = userInfo.Emp_Code; this.appRefId = context.Request.Params.Get("APP_REF_ID"); if (this.appRefId == "" || this.appRefId == null) { this.appRefId = "NULL"; } Biz_Com_Approval_Line_Base objBase = new Biz_Com_Approval_Line_Base(); DataSet dtBase = objBase.GetBaseAppLine(this.bizType, int.Parse(this.userId)); if (dtBase.Tables.Count > 0) { dtBase.Tables[0].DefaultView.Sort = "SORT_ORDER DESC"; for (int i = 0; i < dtBase.Tables[0].Rows.Count; i++) { if (i > 0) { appLine = appLine + ","; } appLine = appLine + "A"; appLine = appLine + "|" + dtBase.Tables[0].DefaultView[i]["EMP_CODE"].ToString(); appLine = appLine + "|" + dtBase.Tables[0].DefaultView[i]["DEPT_CODE"].ToString(); } } }