コード例 #1
0
ファイル: PMS0300M1.aspx.cs プロジェクト: schifflee/bscgit
    protected void ibnConfirmEst_Click(object sender, ImageClickEventArgs e)
    {
        if (Check_TgtEmp_Est_Status())
        {
            bool Result;

            Result = bizPrjData.Modify_Prj_Data_Est_Status(PRJ_REF_ID, 0, 0, "E", gUserInfo.Emp_Ref_ID);

            if (Result)
            {
                //this.ltrScript.Text = JSHelper.GetAlertScript("정상적으로 처리되었습니다.");
                this.ltrScript.Text = JSHelper.GetAlertOpenerReflashScript("정상적으로 처리되었습니다.", false);
            }
            else
            {
                this.ltrScript.Text = JSHelper.GetAlertScript("오류가 발생했습니다.");
            }
        }
        else
        {
            this.ltrScript.Text = JSHelper.GetAlertScript("평가하지 않은 피평가자가 존재합니다.");
        }

        Prj_Data_Bind();
    }
コード例 #2
0
ファイル: BSC1001M1.aspx.cs プロジェクト: schifflee/bscgit
    protected void iBtnSave_Click(object sender, ImageClickEventArgs e)
    {
        object[] objList = GetSelectKpiList();

        Biz_Bsc_Term_Detail objTerm = new Biz_Bsc_Term_Detail();
        DataSet             dsYear  = objTerm.GetTermDetail(ESTTERM_REF_ID);

        if (dsYear.Tables[0].Rows.Count < 1)
        {
            ltrScript.Text = JSHelper.GetAlertScript("평가년도를 확인하세요.");
            return;
        }
        Biz_Bsc_Kpi_Info objMBO = new Biz_Bsc_Kpi_Info();


        //if (objMBO.CopyKpiToMbo(ESTTERM_REF_ID
        //                        , objList
        //                        , gUserInfo.Emp_Ref_ID
        //                        , dsYear.Tables[0].Rows[0]["YMD"].ToString().Substring(0, 4)
        //                        , "STG"))
        //{
        //    DoBindingDept();
        //    DoBinding();
        //    ltrScript.Text = JSHelper.GetAlertScript("복사를 완료하였습니다.");
        //}
        //else
        //{
        //    ltrScript.Text = JSHelper.GetAlertScript("복사가 실패하였습니다.");
        //}
        int checkCount = 0;

        for (int i = 0; i < objList.Length; i++)
        {
            checkCount += new MicroBSC.Integration.BSC.Biz.Biz_Bsc_Kpi_Info().KpiInfoExsistCheckPerson(int.Parse(objList[i].ToString()), gUserInfo.Emp_Ref_ID, ESTTERM_REF_ID);
        }

        if (checkCount > 0)
        {
            Response.Write("<script>alert('중복되는 KPI 풀입니다.');</script>");
        }
        else
        {
            string returnStr = objMBO.CopyKpiToMbo_NW(ESTTERM_REF_ID
                                                      , objList
                                                      , gUserInfo.Emp_Ref_ID
                                                      , dsYear.Tables[0].Rows[0]["YMD"].ToString().Substring(0, 4)
                                                      , "STG");

            if (returnStr.Equals(string.Empty))
            {
                DoBindingDept();
                ltrScript.Text = JSHelper.GetAlertOpenerReflashScript("복사를 완료하였습니다.", true);
            }
            else
            {
                ltrScript.Text = JSHelper.GetAlertScript(returnStr);
            }
        }
    }
コード例 #3
0
 protected void iBtnSave_Click(object sender, ImageClickEventArgs e)
 {
     if (doSave())
     {
         this.ltrScript.Text = JSHelper.GetAlertOpenerReflashScript("적용되었습니다.", true);
     }
     else
     {
         this.ltrScript.Text = JSHelper.GetAlertOpenerReflashScript("실패하였습니다.", true);
     }
 }
コード例 #4
0
 protected void iBtnDelete_Click(object sender, ImageClickEventArgs e)
 {
     this.IType = "D";
     if (!this.TxrNotice())
     {
         this.IType = "U";
     }
     else
     {
         this.ltrScript.Text = JSHelper.GetAlertOpenerReflashScript("현재 팝업창을 종료합니다.", true);
     }
 }
コード例 #5
0
    protected void iBtnSaveEst_Click(object sender, ImageClickEventArgs e)
    {
        bool isSuccessed = SaveQuestionData();

        if (isSuccessed)
        {
            ltrScript.Text = JSHelper.GetAlertOpenerReflashScript("정상적으로 질의평가 되었습니다.", true);
        }
        else
        {
            ltrScript.Text = JSHelper.GetAlertScript("질의평가가 정상적으로 처리되지 않았습니다.", false);
        }
    }
コード例 #6
0
ファイル: BSC0705M1.aspx.cs プロジェクト: schifflee/bscgit
    protected void iBtnModify_Click(object sender, ImageClickEventArgs e)
    {
        string strReturnMessage = string.Empty;

        if (this.TxrNotice())
        {
            strReturnMessage = "수정되었습니다.";
            ltrScript.Text   = JSHelper.GetAlertOpenerReflashScript(strReturnMessage, true);
        }
        else
        {
            strReturnMessage = "수정 실패되었습니다.";
            ltrScript.Text   = JSHelper.GetAlertScript(strReturnMessage, false);
        }
    }
コード例 #7
0
    protected void ibtnSave_Click(object sender, ImageClickEventArgs e)
    {
        int result       = 0;
        int grid2_rowcnt = this.UltraWebGrid2.Rows.Count;

        Infragistics.WebUI.UltraWebGrid.UltraGridRow row;

        /*
         * COM_Approval_lines appline;
         *
         * for (int i = 0; i < grid2_rowcnt; i++)
         * {
         *  appline = new COM_Approval_lines();
         *  row = this.UltraWebGrid2.Rows[i];
         *
         *  result += appline.AddAPPROVAL_LINE(
         *      Request["apptype"], // 결재형태
         *      row.Cells[5].Text,  // 직번
         *      int.Parse(row.Cells[1].Text), // 순번
         *      "", // 다음결재자직번
         *      row.Cells[2].Text,  // 이름
         *      row.Cells[6].Text,  // 부서코드
         *      row.Cells[3].Text,  // 부서명
         *      row.Cells[7].Text,  // 직급코드
         *      row.Cells[4].Text,  // 직급명
         *      "", // 역할코드
         *      "");    // 역할명
         *
         *  appline = null;
         * }
         */
        if (result > 0)
        {
            // 저장 완료
//            this._showMessage(this, "저장이 완료되었습니다.");

            this.Literal1.Text = JSHelper.GetAlertOpenerReflashScript("저장이 완료되었습니다.", true);
        }
        else
        {
            // 저장 실패
            //this._showMessage(this, "저장이 실패하였습니다.");
        }
    }
コード例 #8
0
    protected void ibtnDelete_Click(object sender, ImageClickEventArgs e)
    {
        int chkcnt       = 0;
        int grid2_rowcnt = this.UltraWebGrid2.Rows.Count;

        CheckBox        chk;
        UltraGridRow    row;
        TemplatedColumn col;

        for (int i = 0; i < grid2_rowcnt; i++)
        {
            row = this.UltraWebGrid2.Rows[i];
            col = (TemplatedColumn)row.Band.Columns.FromKey("selchk2");
            chk = (CheckBox)((CellItem)col.CellItems[row.BandIndex]).FindControl("selchk2");

            if (chk.Checked)
            {
                chkcnt++;
                // 선택항목 사용자 제거
                this.UltraWebGrid2.Rows.Remove(row);
                // 레코드 갯수 하나 삭제
                grid2_rowcnt--;
                // 일련번호 갯수 하나 삭제
                i--;
            }
        }

        grid2_rowcnt = this.UltraWebGrid2.Rows.Count;
        for (int i = 0; i < grid2_rowcnt; i++)
        {
            row = this.UltraWebGrid2.Rows[i];
            row.Cells[1].Value = i + 1;
        }

        if (chkcnt <= 0)
        {
            Literal1.Text = JSHelper.GetAlertOpenerReflashScript("삭제할 항목을 선택해 주세요.", false);
        }
    }
コード例 #9
0
    private void SaveQuestionData()
    {
        Biz_Prj_QuestionData questionDatas = new Biz_Prj_QuestionData();
        Biz_Prj_Data         datas         = new Biz_Prj_Data();
        DataTable            dtQData       = questionDatas.GetDataTableSchema();

        dtQData = GetQuestionDataTable(dtQData, DataList1);
        dtQData = GetQuestionSubDataTable(dtQData, DataList2);

        DataTable dtPrjData = AddNewPrjDataRow(datas.GetDataTableSchema(), dtQData);

        bool isSuccessed = questionDatas.SaveQuestionData(dtQData, dtPrjData);

        if (!isSuccessed)
        {
            ltrScript.Text = JSHelper.GetAlertScript("데이터 저장 중 실패하였습니다.", false);
            return;
        }

        //ltrScript.Text = JSHelper.GetAlertOpenerControlCallBackScript("정상적으로 저장되었습니다.", "lbnReload", true);
        ltrScript.Text = JSHelper.GetAlertOpenerReflashScript("정상적으로 저장되었습니다.", true);
    }
コード例 #10
0
    protected void ibtnSave_Click(object sender, ImageClickEventArgs e)
    {
        bool         isSuccessed  = false;
        int          grid2_rowcnt = this.UltraWebGrid2.Rows.Count;
        UltraGridRow row;

        ApprovalLines app = null;

        if (txtEmpID.Text != null && txtEmpID.Text.Length > 0)
        {
            //if (Request["mode"].Equals("New"))
            //{
            for (int i = 0; i < grid2_rowcnt; i++)
            {
                app         = new ApprovalLines();
                row         = this.UltraWebGrid2.Rows[i];
                isSuccessed = app.AddApprovaLline(
                    (int)row.Cells.FromKey("APP_STEP").Value
                    , (string)row.Cells.FromKey("BIZ_TYPE_CODE").Value
                    , int.Parse(txtEmpID.Text)
                    , (int)row.Cells.FromKey("APP_EMP_ID").Value);
            }

            if (isSuccessed)
            {
                Literal1.Text = JSHelper.GetAlertOpenerControlCallBackScript("결재선 지정이 완료되었습니다.", "ibtnSearch", true);
            }
            else
            {
                Literal1.Text = JSHelper.GetAlertOpenerReflashScript("결재선 지정 시 오류가 발생하였습니다.", false);
            }
            // 이하 부분 2006-06-21 박면 수정 작업 했음

            //}

            /*else if (Request["mode"].Equals("Modify"))
             * {
             *  app = new ApprovalLines();
             *  bool isRemoved = app.RemoveApprovalLine(Request["biz_type_code"], int.Parse(Request["EmpID"]));
             *
             *  if (isRemoved)
             *  {
             *      for (int i = 0; i < grid2_rowcnt; i++)
             *      {
             *          app = new ApprovalLines();
             *          row = this.UltraWebGrid2.Rows[i];
             *          isSuccessed = app.AddApprovaLline(
             *              (int)row.Cells.FromKey("APP_STEP").Value
             *              , (string)row.Cells.FromKey("BIZ_TYPE_CODE").Value
             *              , int.Parse(txtEmpID.Text)
             *              , (int)row.Cells.FromKey("APP_EMP_ID").Value);
             *      }
             *
             *      if (isSuccessed)
             *          Literal1.Text = JSHelper.GetAlertOpenerReflashScript("수정이 완료되었습니다.", true);
             *      else
             *          Literal1.Text = JSHelper.GetAlertOpenerReflashScript("수정 중 실패 하였습니다.", false);
             *
             *      return;
             *  }
             *  else
             *  {
             *      Literal1.Text = JSHelper.GetAlertOpenerReflashScript("수정 중 실패 하였습니다.", false);
             *  }
             * }*/
        }
        else
        {
            Literal1.Text = JSHelper.GetAlertOpenerReflashScript("결재 승인자를 선택하여야 합니다.", false);
        }
    }
コード例 #11
0
    protected void iBtnSave_Click(object sender, ImageClickEventArgs e)
    {
        object[] objList = GetSelectKpiList(UltraWebGrid2);

        Biz_Bsc_Term_Detail objTerm = new Biz_Bsc_Term_Detail();
        DataSet             dsYear  = objTerm.GetTermDetail(ESTTERM_REF_ID);

        if (dsYear.Tables[0].Rows.Count < 1)
        {
            ltrScript.Text = JSHelper.GetAlertScript("평가년도를 확인하세요.");
            return;
        }

        string result_measurement_step = "LV5";

        MicroBSC.Biz.Common.Biz.Biz_Com_Code_Info bizComCodeInfo = new MicroBSC.Biz.Common.Biz.Biz_Com_Code_Info();
        DataTable dtComCodeInfo = bizComCodeInfo.getCheckStep(0).Tables[0];

        DataRow[] rows = dtComCodeInfo.Select(" USE_YN = 'Y' ", "SORT_ORDER DESC");
        if (rows.Length > 0)
        {
            result_measurement_step = DataTypeUtility.GetValue(rows[0]["ETC_CODE"]);
        }

        int unit_type_ref_id = 1;

        MicroBSC.Biz.Common.Biz.Biz_Com_Unit_Type_Info bizComUnitTypeInfo = new MicroBSC.Biz.Common.Biz.Biz_Com_Unit_Type_Info();
        DataTable dtComUnitTypeInfo = bizComUnitTypeInfo.GetAllList().Tables[0];

        if (dtComUnitTypeInfo.Rows.Count > 0)
        {
            unit_type_ref_id = DataTypeUtility.GetToInt32(dtComUnitTypeInfo.Rows[0]["UNIT_TYPE_REF_ID"]);
        }

        Biz_Bsc_Threshold_Step bizBscThresholdStep = new Biz_Bsc_Threshold_Step();
        DataTable dtBscThresholdStep = bizBscThresholdStep.GetThresholdLevelList(result_measurement_step).Tables[0];

        int checkCount = 0;

        for (int i = 0; i < objList.Length; i++)
        {
            checkCount += new MicroBSC.Integration.BSC.Biz.Biz_Bsc_Kpi_Info().KpiInfoExsistCheckPerson(int.Parse(objList[i].ToString()), gUserInfo.Emp_Ref_ID, ESTTERM_REF_ID);
        }

        if (checkCount > 0)
        {
            Response.Write("<script>alert('중복되는 KPI 풀입니다.');</script>");
        }
        else
        {
            MicroBSC.Integration.BSC.Biz.Biz_Bsc_Kpi_Info bizBscKpiInfo = new MicroBSC.Integration.BSC.Biz.Biz_Bsc_Kpi_Info();
            string returnStr = bizBscKpiInfo.CopyKpiToMboUsingTemplete(ESTTERM_REF_ID
                                                                       , objList
                                                                       , TEMPLETE_ID
                                                                       , TEMPLETE_NAME
                                                                       , gUserInfo.Emp_Ref_ID
                                                                       , DateTime.Now.ToString("yyyy-MM-dd")
                                                                       , result_measurement_step
                                                                       , unit_type_ref_id
                                                                       , "PRS"
                                                                       , dtBscThresholdStep);

            if (returnStr.Equals(string.Empty))
            {
                DoBindingTemplete();
                ltrScript.Text = JSHelper.GetAlertOpenerReflashScript("복사를 완료하였습니다.", true);
            }
            else
            {
                ltrScript.Text = JSHelper.GetAlertScript(returnStr);
            }
        }
    }