Exemple #1
0
        /// <summary>
        /// Grid Control Initialize
        /// </summary>
        private void InitGridControl()
        {
            viewGetMatInfo.BeginInit();

            viewGetMatInfo.InitGridColumn("ItemSeq                      ", "No                      ", 70, 0, false, false, ColumnDataType.Default, HorzAlignment.Near);
            viewGetMatInfo.InitGridColumn("CustSeq                      ", "거래처번호              ", 70, 0, false, false, ColumnDataType.Default, HorzAlignment.Near);
            viewGetMatInfo.InitGridColumn("CustNm                       ", "거래처명                ", 70, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetMatInfo.InitGridColumn("ItemNo                       ", "자재 번호                ", 70, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetMatInfo.InitGridColumn("ItemNm                       ", "자재명                  ", 70, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetMatInfo.InitGridColumn("ItemGB                       ", "자재 구분                ", 70, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetMatInfo.InitGridColumn("ModelCd                      ", "모델                    ", 70, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetMatInfo.InitGridColumn("ItemCls1                     ", "대분류                  ", 70, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetMatInfo.InitGridColumn("ItemCls2                     ", "중분류                  ", 70, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetMatInfo.InitGridColumn("ItemCls3                     ", "소분류                  ", 70, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetMatInfo.InitGridColumn("UnitCd                       ", "단위                    ", 70, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetMatInfo.InitGridColumn("Spec                         ", "규격                    ", 70, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetMatInfo.InitGridColumn("MaterialCd                   ", "재질                    ", 70, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetMatInfo.InitGridColumn("Thickness                    ", "두께                    ", 70, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetMatInfo.InitGridColumn("Weight                       ", "무게                    ", 70, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetMatInfo.InitGridColumn("Remark                       ", "비고                    ", 70, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetMatInfo.InitGridColumn("UseYn                        ", "사용 여부                ", 70, 0, false, true, ColumnDataType.CheckEdit, HorzAlignment.Near);
            viewGetMatInfo.InitGridColumn("InspYn                       ", "검사 여부                ", 70, 0, false, false, ColumnDataType.CheckEdit, HorzAlignment.Near);
            viewGetMatInfo.InitComboBoxColumn("ItemGB", MesCodeUtil.GetCodeMaster("MD_ITEMGB", ""), false, false);
            viewGetMatInfo.InitComboBoxColumn("ItemCls1", MesCodeUtil.GetCodeMaster("MD_ItemCls1", ""), false, false);
            viewGetMatInfo.InitComboBoxColumn("ItemCls2", MesCodeUtil.GetCodeMaster("MD_ItemCls2", ""), false, false);
            viewGetMatInfo.InitComboBoxColumn("ItemCls3", MesCodeUtil.GetCodeMaster("MD_ItemCls3", ""), false, false);
            viewGetMatInfo.InitComboBoxColumn("UnitCd", MesCodeUtil.GetCodeMaster("UnitCd", ""), false, false);
            viewGetMatInfo.InitComboBoxColumn("ModelCd", MesCodeUtil.GetCodeMaster("MD_ModelCd", ""), false, false);
            viewGetMatInfo.InitComboBoxColumn("MaterialCd", MesCodeUtil.GetCodeMaster("MD_MaterialCd", ""), false, false);

            viewGetMatInfo.EndInit();
        }
Exemple #2
0
        /// <summary>
        /// Grid Control Initialize
        /// </summary>
        private void InitGridControl()
        {
            viewGetCustInfo.BeginInit();

            viewGetCustInfo.InitGridColumn("UseYN        ", "사용 여부         ", 60, 0, false, false, ColumnDataType.CheckEdit, HorzAlignment.Near);
            viewGetCustInfo.InitGridColumn("CustSeq      ", "거래처 일련번호  ", 100, 0, false, false, ColumnDataType.Default, HorzAlignment.Near);
            viewGetCustInfo.InitGridColumn("CustNm       ", "거래처명        ", 100, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetCustInfo.InitGridColumn("BizNo        ", "사업자 번호      ", 90, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetCustInfo.InitGridColumn("PresidentNm  ", "대표이사명       ", 80, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetCustInfo.InitGridColumn("CompClass    ", "업태 코드         ", 80, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetCustInfo.InitGridColumn("CompType     ", "종목 코드         ", 80, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetCustInfo.InitGridColumn("Tel          ", "전화번호         ", 90, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetCustInfo.InitGridColumn("Fax          ", "팩스 번호         ", 90, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetCustInfo.InitGridColumn("Zipcode      ", "우편번호         ", 60, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetCustInfo.InitGridColumn("Address1     ", "주소             ", 200, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetCustInfo.InitGridColumn("Address2     ", "상세주소         ", 60, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetCustInfo.InitGridColumn("CustGb       ", "거래처 구분       ", 80, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetCustInfo.InitGridColumn("TracBank     ", "거래은행         ", 80, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetCustInfo.InitGridColumn("BankNo       ", "계좌번호         ", 120, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetCustInfo.InitGridColumn("AccNm        ", "예금주명         ", 60, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetCustInfo.InitGridColumn("ManagerNm    ", "담당자명        ", 75, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetCustInfo.InitGridColumn("ManagerTel   ", "담당자 전화번호  ", 90, 0, false, false, ColumnDataType.Default, HorzAlignment.Near);
            viewGetCustInfo.InitGridColumn("ManagerMobile", "담당자 휴대폰 번호", 120, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetCustInfo.InitGridColumn("ManagerMail  ", "담당자 메일      ", 200, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            viewGetCustInfo.InitGridColumn("Remark       ", "비고             ", 100, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);


            viewGetCustInfo.InitComboBoxColumn("TracBank      ", MesCodeUtil.GetCodeMaster("Bank", ""), false, false);
            viewGetCustInfo.InitComboBoxColumn("CustGb        ", MesCodeUtil.GetCodeMaster("MD_CustGb", ""), false, false);

            viewGetCustInfo.EndInit();
        }
Exemple #3
0
        /// <summary>
        /// Grid Control Initialize
        /// </summary>
        private void InitGridControl()
        {
            view_get_spare_info.BeginInit();

            view_get_spare_info.InitGridColumn("EqSpareSeq         ", "예비품 일련번호        ", 120, 0, false, true, ColumnDataType.Text, HorzAlignment.Near);;
            view_get_spare_info.InitGridColumn("EqSpareNm          ", "예비품명              ", 120, 0, false, true, ColumnDataType.Text, HorzAlignment.Near);;
            view_get_spare_info.InitGridColumn("EqCd               ", "설비번호              ", 70, 0, false, true, ColumnDataType.Text, HorzAlignment.Near);
            view_get_spare_info.InitGridColumn("EqSpareCls1        ", "대분류                ", 70, 0, false, true, ColumnDataType.Text, HorzAlignment.Near);
            view_get_spare_info.InitGridColumn("EqSpareCls2        ", "중분류                ", 70, 0, false, true, ColumnDataType.Text, HorzAlignment.Near);
            view_get_spare_info.InitGridColumn("CustSeq            ", "거래처 일련번호        ", 120, 0, false, false, ColumnDataType.Text, HorzAlignment.Near);
            view_get_spare_info.InitGridColumn("Material           ", "재질                  ", 70, 0, false, true, ColumnDataType.Text, HorzAlignment.Near);
            view_get_spare_info.InitGridColumn("UnitCd             ", "단위                  ", 70, 0, false, true, ColumnDataType.Text, HorzAlignment.Near);
            view_get_spare_info.InitGridColumn("CustNm             ", "거래처명              ", 70, 0, false, true, ColumnDataType.Text, HorzAlignment.Near);
            view_get_spare_info.InitGridColumn("Weight             ", "무게                  ", 70, 0, false, true, ColumnDataType.Text, HorzAlignment.Near);
            view_get_spare_info.InitGridColumn("BaseQty            ", "기초재고              ", 70, 0, false, true, ColumnDataType.Text, HorzAlignment.Near);
            view_get_spare_info.InitGridColumn("Spec               ", "규격                  ", 70, 0, false, true, ColumnDataType.Text, HorzAlignment.Near);
            view_get_spare_info.InitGridColumn("RegUserId          ", "등록자 ID             ", 70, 0, false, true, ColumnDataType.Text, HorzAlignment.Near);
            view_get_spare_info.InitGridColumn("RegDt              ", "등록 일시             ", 120, 0, false, true, ColumnDataType.DateTime, HorzAlignment.Near);
            view_get_spare_info.InitGridColumn("ModUserId          ", "수정자 ID             ", 70, 0, false, true, ColumnDataType.Text, HorzAlignment.Near);
            view_get_spare_info.InitGridColumn("ModDt              ", "수정 일시             ", 120, 0, false, true, ColumnDataType.DateTime, HorzAlignment.Near);
            view_get_spare_info.InitGridColumn("Remark             ", "비고                  ", 300, 0, false, true, ColumnDataType.Text, HorzAlignment.Near);
            view_get_spare_info.InitComboBoxColumn("EqSpareCls1", MesCodeUtil.GetCodeMaster("EqSpareCls1", ""), false, false);
            view_get_spare_info.InitComboBoxColumn("EqSpareCls2", MesCodeUtil.GetCodeMaster("EqSpareCls2", ""), false, false);
            view_get_spare_info.InitComboBoxColumn("UnitCd", MesCodeUtil.GetCodeMaster("UnitCd", ""), false, false);
            view_get_spare_info.EndInit();
        }
Exemple #4
0
        public void InitData()
        {
            switch (_ItemInitType_From)
            {
            case ItemInitType.CodeHelp:
                break;

            case ItemInitType.CodeMaster:
                if (_ItemInitCodeMaster_From != "")
                {
                    CboFrom.InitData(MesCodeUtil.GetCodeMaster(_ItemInitCodeMaster_From, ""));
                }
                break;

            case ItemInitType.SqlQuery:
                if (_ItemInitSql_From != "")
                {
                    CboFrom.InitData(MesCodeUtil.ExecuteSqlQuery(_ItemInitSql_From));
                }
                break;

            case ItemInitType.StoredProcedure:
                break;
            }

            switch (_ItemInitType_To)
            {
            case ItemInitType.CodeHelp:
                break;

            case ItemInitType.CodeMaster:
                if (_ItemInitCodeMaster_To != "")
                {
                    CboTo.InitData(MesCodeUtil.GetCodeMaster(_ItemInitCodeMaster_To, ""));
                }
                break;

            case ItemInitType.SqlQuery:
                if (_ItemInitSql_To != "")
                {
                    CboTo.InitData(MesCodeUtil.ExecuteSqlQuery(_ItemInitSql_To));
                }
                break;

            case ItemInitType.StoredProcedure:
                break;
            }
        }
Exemple #5
0
        /// <summary>
        /// Grid Control Initialize
        /// </summary>
        private void InitGridControl()
        {
            view_Process.BeginInit();

            view_Process.InitGridColumn("ProcSeq     ", "공정일련번호    ", 100, 0, false, false, ColumnDataType.Default, HorzAlignment.Center);
            view_Process.InitGridColumn("ProcCd      ", "공정코드        ", 100, 0, false, true, ColumnDataType.Default, HorzAlignment.Center);
            view_Process.InitGridColumn("ProcNm      ", "공정명          ", 150, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            view_Process.InitGridColumn("ProcEngNm   ", "공정명(영문)    ", 180, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            view_Process.InitGridColumn("ProcGb      ", "공정구분        ", 150, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            view_Process.InitGridColumn("Remark      ", "비고            ", 250, 0, false, true, ColumnDataType.Default, HorzAlignment.Near);
            view_Process.InitGridColumn("UseYn       ", "사용여부        ", 250, 0, false, true, ColumnDataType.CheckEdit, HorzAlignment.Near);

            view_Process.InitComboBoxColumn("ProcGb       ", MesCodeUtil.GetCodeMaster("PROCGB", ""), false, false);

            view_Process.EndInit();
        }