Example #1
0
        /// <summary>
        /// 점검 실적 수정
        /// </summary>
        /// <param name="target"></param>
        /// <param name="state"></param>
        void ChkRstEdit(int target = -1, string state = "")
        {
            try
            {
                using (E3001_04P frmRstReg = new E3001_04P(target, state))
                {
                    frmRstReg.ShowDialog();

                    if (frmRstReg.IsSaved)
                    {
                        SearchEmsChkPlan();
                    }
                }
            }
            catch (Exception err)
            {
                this.BaseClass.Error(err);
            }
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="TypeId">점검계획, 점검실적, 장애</param>
        /// <param name="IdNo">점검번호 , 장애 번호</param>
        private void SetOthersForm(AppointmentItem a, int IdNo)
        {
            //MessageBox.Show("link..");

            //MainWinParam objParam = new MainWinParam();
            //  objParam.BTCH_NO = ((SMS.DataMembers.SPCS201.MasterGrid)rowData).BTCH_NO;            // 배치번호
            //  objParam.EQP_ID = this.cboEQP.GetKeyValue(this.cboEQP.SelectedIndex).ToString();    // 설비 ID
            // objParam.WRK_STRT_DT = ((SMS.DataMembers.SPCS201.MasterGrid)rowData).WRK_YMD;            // 작업일자
            // objParam.CST_CD = ((SMS.DataMembers.SPCS201.MasterGrid)rowData).CST_CD;             // 고객사 코드
            // objParam.CST_NM = ((SMS.DataMembers.SPCS201.MasterGrid)rowData).CST_NM;             // 고객사 명
            //objParam.BTCH_SEQ = ((SMS.DataMembers.SPCS201.MasterGrid)rowData).BTCH_SEQ;           // 배치순번


            int typeId = int.Parse(a.LabelId.ToString());
            int Chk_no = int.Parse(a.TimeZoneId.ToString());



            if (typeId == 1)
            {
                //MessageBox.Show("장애" + Chk_no.ToString());
                //objParam.MENU_ID = "ECHK002_01P";                                                          // 메뉴 ID

                //ECHK002_01P frmEchkErrReg = new ECHK002_01P(-1);
                //frmEchkErrReg.ShowDialog();

                //EmsSession.Instance.MainForm.OpenMenuFrom("EMS0302", "ECHK002_01P", Chk_no.ToString());
                using (E3002_01P frm = new E3002_01P(Chk_no, ("2" == a.StatusId.ToString()) ? "CONF" : string.Empty))
                {
                    frm.ShowDialog();
                }
            }
            else if (typeId == 2)
            {
                //MessageBox.Show("계획" + Chk_no.ToString());
                //objParam.MENU_ID = "ECHK001_01P";                                                          // 메뉴 ID

                //ECHK001_01P frmChkReg = new ECHK001_01P(-1);
                //frmChkReg.ShowDialog();

                //EmsSession.Instance.MainForm.OpenMenuFrom("EMS0301", "ECHK001_04P", Chk_no.ToString());
                //ECHK001_04P frmRstReg = new ECHK001_04P(Chk_no, ("2" == a.StatusId.ToString()) ? "F" : "");

                using (E3001_04P frm = new E3001_04P(Chk_no, ("2" == a.StatusId.ToString()) ? "CONF" : string.Empty))
                {
                    frm.ShowDialog();
                }
            }
            else if (typeId == 3)
            {
                //MessageBox.Show("실적" + Chk_no.ToString());
                //objParam.MENU_ID = "ECHK001_04P";                                                          // 메뉴 ID

                //ECHK001_04P frmRstReg = new ECHK001_04P(-1);
                //frmRstReg.ShowDialog();

                //EmsSession.Instance.MainForm.OpenMenuFrom("EMS0301", "ECHK001_04P", Chk_no.ToString());
                //ECHK001_04P frmRstReg = new ECHK001_04P(Chk_no, ("2" == a.StatusId.ToString()) ? "F" : "");
                using (E3001_04P frm = new E3001_04P(Chk_no, ("2" == a.StatusId.ToString()) ? "CONF" : string.Empty))
                {
                    frm.ShowDialog();
                }
            }

            //this.SelectedMenuOpenEvent(objParam);
        }