private void InitControlValue() { Biz_app_app0000 biz = new Biz_app_app0000(); ddlAppGubun.Items.Clear(); ddlAppGubun.DataSource = biz.GetDDLAppGubun(); ddlAppGubun.DataTextField = "V_NAME"; ddlAppGubun.DataValueField = "V_CODE"; ddlAppGubun.DataBind(); ddlAppGubun.Items.Insert(0, new ListItem(":: 전체 ::", "")); ddlEstTerm.Items.Clear(); //ddlEstTerm.DataSource = biz.GetDDLEstTerm(); //ddlEstTerm.DataTextField = "V_NAME"; //ddlEstTerm.DataValueField = "V_CODE"; //ddlEstTerm.DataBind(); WebCommon.SetEstTermDropDownList(ddlEstTerm); ddlAppType.Items.Clear(); //ddlAppType.Items.Add(new ListItem(":: 전체 ::", "")); ddlAppType.Items.Add(new ListItem("전체", "")); ddlAppType.Items.Add(new ListItem("대기", "P")); ddlAppType.Items.Add(new ListItem("승인", "E")); ddlAppType.Items.Add(new ListItem("취소", "C")); //ddlAppType.ClearSelection(); //ddlAppType.Items.FindByValue("P").Selected = true; }
private DataSet GetSearchDetail(string asAppRefID) { DataSet ds = new DataSet(); Biz_app_app0000 biz = new Biz_app_app0000(); ds = biz.GetSearchDetail(asAppRefID); return(ds); }
private DataSet GetSearchData() { DataSet ds = new DataSet(); int iEmpRefID = gUserInfo.Emp_Ref_ID; string sAppGubun = PageUtility.GetByValueDropDownList(ddlAppGubun); string sEstTerm = PageUtility.GetByValueDropDownList(ddlEstTerm); string sAppStatus = PageUtility.GetByValueDropDownList(ddlAppType); Biz_app_app0000 biz = new Biz_app_app0000(); ds = biz.GetSearchData(iEmpRefID, sAppGubun, sEstTerm, sAppStatus, false); return(ds); }
/// <summary> /// SetAppCancel /// : 결재취소 처리 /// </summary> private void SetAppCancel() { int iChecked = 0; bool bChecked = false; string sPrcKey = ""; string[,] saPrcKey; // 취소사유 확인 string sRemark = GetValue(txtCancelRemark.Text); if (sRemark == "") { PageUtility.AlertMsgFocus("[취소사유]를 입력하셔야 합니다!", "txtCancelRemark"); return; } UltraGridRow row; // 현재결재상태코드(V_CUR_APP_STATUS_CD), 전체결재상태코드(V_ALL_APP_STATUS_CD) // 문서번호(V_APP_REF_ID);문서타입(V_APP_CODE);KPI문서정보(V_EVENT_ID);KPI문서추가정보(V_EVENT_ADD_ID);평가기간코드(V_TERM_REF_ID);현재결재단계(V_APP_STEP);전체결재단계(V_MAX_APP_STEP) // 체크되어있는 사항 있는지 점검 for (int i = 0; i < this.UltraWebGrid1.Rows.Count; i++) { row = UltraWebGrid1.Rows[i]; if (Convert.ToBoolean(row.Cells.FromKey("SelChk").GetText())) { iChecked++; // 현재결재상태코드가 승인취소(C)가 아니면서 현재결재상태코드가 승인(E)가 아닐경우 if ( GetValue(row.Cells.FromKey("V_CUR_APP_STATUS_CD").Value) != "C" && GetValue(row.Cells.FromKey("V_CUR_APP_STATUS_CD").Value) != "E" && GetValue(row.Cells.FromKey("V_APP_EMP_ID").Value) == GetValue(gUserInfo.Emp_Ref_ID) ) { if (bChecked == false) { bChecked = true; } sPrcKey += GetValue(row.Cells.FromKey("V_APP_REF_ID").Value) + ";" + GetValue(row.Cells.FromKey("V_APP_CODE").Value) + ";" + GetValue(row.Cells.FromKey("V_EVENT_ID").Value) + ";" + GetValue(row.Cells.FromKey("V_EVENT_ADD_ID").Value) + ";" + GetValue(row.Cells.FromKey("V_TERM_REF_ID").Value) + ";" + GetValue(row.Cells.FromKey("V_APP_STEP").Value) + ";" + GetValue(row.Cells.FromKey("V_MAX_APP_STEP").Value) + ";" ; } else { // 앞에서 잘 선택되었더라도 하나라도 잘못 선택되었다면 다시해야 한다. if (bChecked == true) { bChecked = false; } return; } } } if (!bChecked) { if (iChecked > 0) { PageUtility.AlertMessage("결재가 완료되었거나 승인취소된 건을 선택하시면 안됩니다!"); } else { PageUtility.AlertMessage("[승인취소] 처리를 하시려면 먼저 선택하셔야 합니다!"); } return; } else { saPrcKey = TypeUtility.GetSplit(sPrcKey, 7); int iProcCnt = 0; Biz_app_app0000 biz = new Biz_app_app0000(); iProcCnt = biz.SetApprovalCancel(sRemark, saPrcKey); PageUtility.AlertMessage( string.Format ( "[{0}]건을 승인취소처리 하였습니다!" , iProcCnt ) ); txtCancelRemark.Text = ""; MenuControl1.CallApprovalInfo(); } }
/// <summary> /// SetRepCancel /// : 상신취소 /// </summary> private void SetRepCancel() { int iChecked = 0; bool bChecked = false; string sPrcKey = ""; string[,] saPrcKey; UltraGridRow row; // 현재결재상태코드(V_CUR_APP_STATUS_CD), 전체결재상태코드(V_ALL_APP_STATUS_CD) // 문서번호(V_APP_REF_ID);문서타입(V_APP_CODE);KPI문서정보(V_EVENT_ID);KPI문서추가정보(V_EVENT_ADD_ID);평가기간코드(V_TERM_REF_ID);현재결재단계(V_APP_STEP);전체결재단계(V_MAX_APP_STEP) // 체크되어있는 사항 있는지 점검 for (int i = 0; i < this.UltraWebGrid1.Rows.Count; i++) { row = UltraWebGrid1.Rows[i]; if (Convert.ToBoolean(row.Cells.FromKey("SelChk").GetText())) { iChecked++; // 현재 단계가 1이면서 대기상태일 때만 체크박스 처리 가능하다. if ( GetValue(row.Cells.FromKey("V_CUR_APP_STATUS_CD").Value) == "P" && GetValue(row.Cells.FromKey("V_APP_STEP").Value) == "1" && GetValue(row.Cells.FromKey("V_REP_EMP_ID").Value) == GetValue(gUserInfo.Emp_Ref_ID) ) { if (bChecked == false) { bChecked = true; } sPrcKey += GetValue(row.Cells.FromKey("V_APP_REF_ID").Value) + ";"; } else { // 앞에서 잘 선택되었더라도 하나라도 잘못 선택되었다면 다시해야 한다. if (bChecked == true) { bChecked = false; } return; } } } if (!bChecked) { if (iChecked > 0) { PageUtility.AlertMessage("[상신취소]는 처리가 아직 안된건에 대해서만 가능합니다!"); } else { PageUtility.AlertMessage("[상신취소] 처리를 하시려면 먼저 선택하셔야 합니다!"); } return; } else { saPrcKey = TypeUtility.GetSplit(sPrcKey); int iProcCnt = 0; Biz_app_app0000 biz = new Biz_app_app0000(); iProcCnt = biz.SetApprovalRepCancel(saPrcKey); PageUtility.AlertMessage( string.Format ( "[{0}]건을 상신취소처리 하였습니다!" , iProcCnt ) ); } }