Example #1
0
        private void btnCate_Change_Click(object sender, EventArgs e)
        {
            Object ob_Roll;

            Cesco.FW.Global.DBAdapter.DBAdapters db_Roll = new Cesco.FW.Global.DBAdapter.DBAdapters(strUserID, System.Reflection.MethodBase.GetCurrentMethod());

            db_Roll.Procedure.ProcedureName = "CESCOEIS.dbo.SP_VOC_STATE_USERGUBUN";
            db_Roll.Procedure.ParamAdd("@USERID", strUserID);

            try
            {
                ob_Roll = db_Roll.ProcedureToScalar();
                if (Convert.ToString(ob_Roll) == "N")
                {
                    MessageBox.Show("팀장만 변경할 수 있습니다.", "변경 불가", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
            }
            catch (Cesco.FW.Global.DBAdapter.WcfException ex)
            {
                MessageBox.Show(ex.Message, "DB 에러");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "처리되지 않은 에러");
            }

            if (lueCall_BigCate.EditValue == "" || lueCall_BigCate.EditValue == null)
            {
                MessageBox.Show("대분류를 먼저 선택해주세요.", "대분류 미선택", MessageBoxButtons.OK, MessageBoxIcon.Information);
                lueCall_BigCate.Focus();
                return;
            }

            string             strRegDate   = deRecei_Date.Text.Replace("-", "").Replace("-", "");
            string             strRegUserID = teRecei_UserID.Text;
            string             strBigCate   = lueCall_BigCate.EditValue.ToString();
            string             strClaimNum  = teCate_ClaimNum.Text;
            VOC_FrmCategoryChg FC           = new VOC_FrmCategoryChg(strUserID, strBigCate, strClaimNum, strRegDate, strRegUserID, strRegNum);

            FC.StartPosition = FormStartPosition.CenterParent;
            FC.ShowDialog();

            setgcCategory();
        }
Example #2
0
        //private void btnSMS2_Click(object sender, EventArgs e)
        //{
        //    sendSMS(lueDistr_Part_User.EditValue.ToString(), lueDistr_Part_Dept.EditValue.ToString(), teCustCode.Text);
        //}

        //private void btnSMS3_Click(object sender, EventArgs e)
        //{
        //    sendSMS(lueDistr_Team_User.EditValue.ToString(), lueDistr_Team_Dept.EditValue.ToString(), teCustCode.Text);
        //}
        #endregion

        private void btnSave_Dist_Click(object sender, EventArgs e)
        {
            if (luePro_State.EditValue.ToString() == "RY01")
            {
                MessageBox.Show("이미 처리완료된 접수입니다.", "변경 불가", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            Object ob_Roll;

            Cesco.FW.Global.DBAdapter.DBAdapters db_Roll = new Cesco.FW.Global.DBAdapter.DBAdapters(strUserID, System.Reflection.MethodBase.GetCurrentMethod());

            db_Roll.Procedure.ProcedureName = "CESCOEIS.dbo.SP_VOC_STATE_USERGUBUN";
            db_Roll.Procedure.ParamAdd("@USERID", strUserID);

            try
            {
                ob_Roll = db_Roll.ProcedureToScalar();
                if (Convert.ToString(ob_Roll) == "N")
                {
                    MessageBox.Show("팀장만 변경할 수 있습니다.", "변경 불가", MessageBoxButtons.OK, MessageBoxIcon.Information);
                    return;
                }
            }
            catch (Cesco.FW.Global.DBAdapter.WcfException ex)
            {
                MessageBox.Show(ex.Message, "DB 에러");
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "처리되지 않은 에러");
            }

            save1();

            MessageBox.Show("처리담당자가 변경되었습니다.", "처리담당자 저장", MessageBoxButtons.OK, MessageBoxIcon.Information);
            return;
        }
        private void VOC_TotalStateMng_Category_Load(object sender, EventArgs e)
        {
            setDate();
            setDateGubun();
            setlueDept();
            setLueProb();

            if (strGubun == "2")
            {
                lueDept.Enabled = false;
                if (strDept == "")
                {
                    lueDept.EditValue = "";
                }
                else
                {
                    if (strDept.Substring(0, 1) == "5")
                    {
                        lueDept.EditValue = strDept;
                    }
                    else
                    {
                        setDeptNmCheck();
                        lueDept.EditValue = strDeptNm;
                    }
                }
                lueDeptDetail.EditValue   = strDeptDetail;
                lueDate_Gubun.EditValue   = strDateGubun;
                lueGubun_Detail.EditValue = strGubun_Detail;
                deDate_From.EditValue     = strDateFrom;
                deDate_To.EditValue       = strDateTo;

                if (strrgVOC == "A")
                {
                    rgVOC_A.Checked = true;
                    rgVOC_P.Checked = false;
                }
                else
                {
                    rgVOC_A.Checked = false;
                    rgVOC_P.Checked = true;
                }
                lue_ProblemLv.EditValue = strVOC_Prob;
            }
            else
            {
                lueDeptDetail.EditValue = strDeptDetail;
                if (Convert.ToInt32(strDeptCode) >= 10280 && Convert.ToInt32(strDeptCode) < 50030)
                {
                    //본부조회
                    Cesco.FW.Global.DBAdapter.DBAdapters db = new Cesco.FW.Global.DBAdapter.DBAdapters(strUserID, System.Reflection.MethodBase.GetCurrentMethod());

                    db.Procedure.ProcedureName = "CESNET2.dbo.SP_DEPT_PARENT_SEARCH";
                    db.Procedure.ParamAdd("@DEPTCODE", strDeptCode);

                    try
                    {
                        object ob = db.ProcedureToScalar();
                        lueDept.EditValue = ob;
                    }
                    catch (Cesco.FW.Global.DBAdapter.WcfException ex)
                    {
                        MessageBox.Show(ex.Message, "DB 에러");
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show(ex.Message, "처리되지 않은 에러");
                    }
                    lueDeptDetail.EditValue = strDeptCode;
                    lueDeptDetail.Enabled   = false;
                }
                else if (Convert.ToInt32(strDeptCode) >= 51000 && Convert.ToInt32(strDeptCode) <= 59000)
                {
                    Cesco.FW.Global.DBAdapter.DBAdapters db = new Cesco.FW.Global.DBAdapter.DBAdapters(strUserID, System.Reflection.MethodBase.GetCurrentMethod());

                    db.Procedure.ProcedureName = "CESNET2.dbo.SP_DEPT_SEARCH_Include";
                    db.Procedure.ParamAdd("@부서코드", strDeptCode);

                    try
                    {
                        DataSet ds = db.ProcedureToDataSet();

                        lueDept.Properties.ValueMember   = "부서코드";
                        lueDept.Properties.DisplayMember = "부서명";
                        if (ds == null || ds.Tables.Count < 1 || ds.Tables[0].Rows.Count == 0)
                        {
                            // XtraMessageBox.Show("조회된 데이터가 없습니다.");
                            return;
                        }
                        lueDept.Properties.DataSource = ds.Tables[0];
                    }
                    catch (Cesco.FW.Global.DBAdapter.WcfException ex)
                    {
                        MessageBox.Show(ex.Message, "DB 에러");
                    }
                    catch (Exception ex)
                    {
                        MessageBox.Show(ex.Message, "처리되지 않은 에러");
                    }
                    lueDept.EditValue = strDeptCode;
                    lueDept.Enabled   = true;
                }
                else
                {
                    lueDept.Enabled       = true;
                    lueDeptDetail.Enabled = true;
                }
            }
            rgVOC1.EditValue = strrgVOC;

            // lue_ProblemLv.EditValue = strVOC_Prob;

            lueGubun_Detail.Enabled = false;
            barButtonItem1_ItemClick(null, null);
            gvbigList_FocusedRowChanged(null, null);

            //저장한 행 선택되어있도록
            ColumnView view   = (ColumnView)gcbigList.FocusedView;
            GridColumn column = view.Columns["VOCID"];

            if (column != null)
            {
                int columnFound = view.LocateByDisplayText(0, column, strVOCID_BIG);
                if (columnFound != GridControl.InvalidRowHandle)
                {
                    view.FocusedRowHandle = columnFound;
                }
            }

            if (strVOCID_MID != "")
            {
                //저장한 행 선택되어있도록
                ColumnView view2   = (ColumnView)gcMidList.FocusedView;
                GridColumn column2 = view.Columns["VOCID"];
                if (column2 != null)
                {
                    int columnFound = view2.LocateByDisplayText(0, column2, strVOCID_MID);
                    if (columnFound != GridControl.InvalidRowHandle)
                    {
                        view2.FocusedRowHandle = columnFound;
                    }
                }
            }
            if (strVOCID_SM != "")
            {
                //저장한 행 선택되어있도록
                ColumnView view3   = (ColumnView)gcSmList.FocusedView;
                GridColumn column3 = view.Columns["VOCID"];
                if (column3 != null)
                {
                    int columnFound = view3.LocateByDisplayText(0, column3, strVOCID_SM);
                    if (columnFound != GridControl.InvalidRowHandle)
                    {
                        view3.FocusedRowHandle = columnFound;
                    }
                }
            }
        }