/// <summary> /// 최초결재선지정 /// </summary> public void SetDraftLine() { Biz_Com_Approval_Line_Base objBase = new Biz_Com_Approval_Line_Base(); DataSet dtBase = objBase.GetBaseAppLine(this.IBiz_Type, gUserInfo.Emp_Ref_ID); ugrdAppLine.Clear(); if (dtBase.Tables.Count > 0) { dtBase.Tables[0].DefaultView.Sort = "SORT_ORDER DESC"; ugrdAppLine.DataSource = dtBase.Tables[0].DefaultView; ugrdAppLine.DataBind(); int iRow = ugrdAppLine.Rows.Count; for (int i = 0; i < iRow; i++) { ugrdAppLine.Rows[i].Cells.FromKey("LINE_TYPE").AllowEditing = AllowEditing.No; ugrdAppLine.Rows[i].Cells.FromKey("LINE_TYPE").Style.BackColor = Color.WhiteSmoke; ugrdAppLine.Rows[i].Cells.FromKey("COMPLETE_YN").Value = "N"; ugrdAppLine.Rows[i].Cells.FromKey("TXR_DATE").Value = "/"; ugrdAppLine.Rows[i].Cells.FromKey("DEFAULT_YN").Value = "Y"; } } }
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(); } } }