Ejemplo n.º 1
0
        private void InitialComboBox()
        {
            LookupDataBIZ bizLookup = new LookupDataBIZ();

            // Lookup Lot Control
            LookupData lookupIssueType = bizLookup.LoadLookupClassType(new NZString(null, "TRANS_TYPE"));

            ReadOnlyPairCellType ItemTypecellType = new ReadOnlyPairCellType(lookupIssueType, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtView.Columns[(int)eColView.ISSUE_TYPE].CellType = ItemTypecellType;

            // Lookup OrderLoc
            LookupData           lookupOrderLoc = bizLookup.LoadLookupLocation();
            ReadOnlyPairCellType OrderLoc       = new ReadOnlyPairCellType(lookupOrderLoc, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtView.Columns[(int)eColView.FROM_LOC].CellType = OrderLoc;

            // Lookup StoreLoc
            LookupData           lookupStoreLoc = bizLookup.LoadLookupLocation();
            ReadOnlyPairCellType StoreLoc       = new ReadOnlyPairCellType(lookupStoreLoc, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtView.Columns[(int)eColView.TO_LOC].CellType = StoreLoc;

            // Lookup CustomerLoc
            LookupData           lookupCustomerLoc = bizLookup.LoadLookupLocation();
            ReadOnlyPairCellType CustomerLoc       = new ReadOnlyPairCellType(lookupCustomerLoc, Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtView.Columns[(int)eColView.FOR_CUSTOMER].CellType = CustomerLoc;

            // Lookup SubType
            LookupData           lookupSubType = bizLookup.LoadLookupClassType(DataDefine.ISSUE_SUBTYPE.ToNZString());
            ReadOnlyPairCellType SubType       = new ReadOnlyPairCellType(lookupSubType, Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtView.Columns[(int)eColView.TRAN_SUB_CLS].CellType = SubType;
        }
Ejemplo n.º 2
0
        private void LoadLookupCellType()
        {
            LookupDataBIZ        biz              = new LookupDataBIZ();
            LookupData           currencyData     = biz.LoadLookupClassType(DataDefine.CURRENCY.ToNZString());
            ReadOnlyPairCellType cellCurrencyType = new ReadOnlyPairCellType(currencyData, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtView.Columns[(int)eColView.CURRENCY].CellType = cellCurrencyType;
        }
Ejemplo n.º 3
0
        private void InitialComboBox()
        {
            LookupDataBIZ bizLookup = new LookupDataBIZ();


            LookupData lookupOPERATION_TYPE = bizLookup.LoadLookupClassType(new NZString(null, DataDefine.OPERATION_TYPE));

            ReadOnlyPairCellType OPERATION_TYPE = new ReadOnlyPairCellType(lookupOPERATION_TYPE, Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtView.Columns[(int)eColView.OPERATION_TYPE].CellType = OPERATION_TYPE;

            LookupData lookupTRANS_CLS = bizLookup.LoadLookupClassType(new NZString(null, DataDefine.TRANS_TYPE));

            ReadOnlyPairCellType TRANS_CLS = new ReadOnlyPairCellType(lookupTRANS_CLS, Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtView.Columns[(int)eColView.TRANS_CLS].CellType = TRANS_CLS;

            LookupData lookupIN_OUT_CLS = bizLookup.LoadLookupClassType(new NZString(null, DataDefine.IN_OUT_CLASS));

            ReadOnlyPairCellType IN_OUT_CLS = new ReadOnlyPairCellType(lookupIN_OUT_CLS, Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtView.Columns[(int)eColView.IN_OUT_CLS].CellType = IN_OUT_CLS;

            // Lookup StoreLoc
            LookupData           lookupStoreLoc = bizLookup.LoadLookupLocation();
            ReadOnlyPairCellType StoreLoc       = new ReadOnlyPairCellType(lookupStoreLoc, Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtView.Columns[(int)eColView.LOC_CD].CellType = StoreLoc;

            // Lookup CustomerLoc
            LookupData           lookupCustomerLoc = bizLookup.LoadLookupLocation();
            ReadOnlyPairCellType CustomerLoc       = new ReadOnlyPairCellType(lookupCustomerLoc, Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtView.Columns[(int)eColView.FOR_CUSTOMER].CellType = CustomerLoc;

            // Lookup SubType
            LookupData           lookupSubType = bizLookup.LoadLookupClassType(DataDefine.ISSUE_SUBTYPE.ToNZString());
            ReadOnlyPairCellType SubType       = new ReadOnlyPairCellType(lookupSubType, Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtView.Columns[(int)eColView.TRAN_SUB_CLS].CellType = SubType;

            LookupData           lookupSHIFT_CLS = bizLookup.LoadLookupClassType(DataDefine.SHIFT_CLS.ToNZString());
            ReadOnlyPairCellType SHIFT_CLS       = new ReadOnlyPairCellType(lookupSHIFT_CLS, Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtView.Columns[(int)eColView.SHIFT_CLS].CellType = SHIFT_CLS;

            LookupData           lookupSCREEN_TYPE = bizLookup.LoadLookupClassType(DataDefine.SCREEN_TYPE.ToNZString());
            ReadOnlyPairCellType SCREEN_TYPE       = new ReadOnlyPairCellType(lookupSCREEN_TYPE, Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtView.Columns[(int)eColView.SCREEN_TYPE].CellType = SCREEN_TYPE;

            LookupData lookupSCREEN_TYPE_CBO = bizLookup.LoadLookupClassType(DataDefine.SCREEN_TYPE.ToNZString());

            cboScreenType.LoadLookupData(lookupSCREEN_TYPE_CBO);
        }
Ejemplo n.º 4
0
        private void LoadLookupCellType()
        {
            LookupDataBIZ bizLookup = new LookupDataBIZ();

            LookupData           locationTypeData = bizLookup.LoadLookupClassType(DataDefine.LOCATION_CLS.ToNZString());
            ReadOnlyPairCellType cellProcess      = new ReadOnlyPairCellType(locationTypeData, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtView.Columns[(int)eColView.LOC_CLS].CellType = cellProcess;

            LookupData           termOfPayment = bizLookup.LoadLookupClassType(DataDefine.TERM_OF_PAYMENT.ToNZString());
            ReadOnlyPairCellType cellProcess1  = new ReadOnlyPairCellType(termOfPayment, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL, false);

            shtView.Columns[(int)eColView.TERM_OF_PAYMENT].CellType = cellProcess1;

            LookupData           invoicePattern = bizLookup.LoadLookupClassType(DataDefine.INVOICE_PATTERN.ToNZString());
            ReadOnlyPairCellType cellProcess2   = new ReadOnlyPairCellType(invoicePattern, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL, false);

            shtView.Columns[(int)eColView.INVOICE_PATTERN].CellType = cellProcess2;
        }
Ejemplo n.º 5
0
        private void InitialSpread()
        {
            shtView.ActiveSkin = Common.ACTIVE_SKIN;
            // lock spread cannot edit
            int col = shtView.Columns.Count;

            for (int i = 0; i < col; i++)
            {
                shtView.Columns[i].Locked = true;
            }

            LookupDataBIZ bizLookup = new LookupDataBIZ();

            // Lookup Lot Control
            LookupData lookupItemType = bizLookup.LoadLookupClassType(new NZString(null, "ITEM_CLS"));

            ReadOnlyPairCellType ItemTypecellType = new ReadOnlyPairCellType(lookupItemType, Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtView.Columns[(int)eColView.ITEM_TYPE].CellType = ItemTypecellType;
        }
Ejemplo n.º 6
0
        private void LoadLookupCellType()
        {
            LookupDataBIZ bizLookup = new LookupDataBIZ();

            LookupData           machineTypeData = bizLookup.LoadLookupClassType(DataDefine.MACHINE_TYPE.ToNZString());
            ReadOnlyPairCellType cellmachineType = new ReadOnlyPairCellType(machineTypeData, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtView.Columns[(int)eColView.MACHINE_TYPE].CellType = cellmachineType;

            LookupData           machineProjectData = bizLookup.LoadLookupClassType(DataDefine.MACHINE_PROJECT.ToNZString());
            ReadOnlyPairCellType cellProjectType    = new ReadOnlyPairCellType(machineProjectData, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtView.Columns[(int)eColView.PROJECT].CellType = cellProjectType;

            NZString[] locationtype = new NZString[1];
            locationtype[0] = DataDefine.Convert2ClassCode(DataDefine.eLOCATION_CLS.Production).ToNZString();
            LookupData           locationData = bizLookup.LoadLookupLocation(locationtype);
            ReadOnlyPairCellType cellProcess  = new ReadOnlyPairCellType(locationData, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtView.Columns[(int)eColView.PROCESS_CD].CellType = cellProcess;
        }
Ejemplo n.º 7
0
        private void LoadLookupCellType()
        {
            LookupDataBIZ bizLookup = new LookupDataBIZ();

            //Kind of Item
            LookupData           lookupKind      = bizLookup.LoadLookupClassType(DataDefine.KIND_OF_PRODUCT.ToNZString());
            ReadOnlyPairCellType cellmachineType = new ReadOnlyPairCellType(lookupKind.Clone(), CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.KIND_OF_PRODUCT].CellType = cellmachineType;

            //ReadOnlyPairCellType cellmatType = new ReadOnlyPairCellType(lookupKind.Clone(), CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);
            //shtItemView.Columns[(int)eColView.KIND_OF_MAT].CellType = cellmatType;

            //BOI
            LookupData           lookupBOI = bizLookup.LoadLookupClassType(DataDefine.BOI_PROJECT.ToNZString());
            ReadOnlyPairCellType cellBOI   = new ReadOnlyPairCellType(lookupBOI, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.BOI].CellType = cellBOI;

            //Customer
            NZString[]           CustomerType   = new NZString[] { (NZString)DataDefine.Convert2ClassCode(DataDefine.eLOCATION_CLS.Customer), (NZString)DataDefine.Convert2ClassCode(DataDefine.eLOCATION_CLS.CustomerVendor) };
            LookupData           LookupCustomer = bizLookup.LoadLookupLocation(CustomerType);
            ReadOnlyPairCellType cellCust       = new ReadOnlyPairCellType(LookupCustomer, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.CUSTOMER_CD].CellType = cellCust;

            // Production DI
            LookupData           LookupProductionDI = bizLookup.LoadLookupClassType(DataDefine.PRODUCTION_DI.ToNZString());
            ReadOnlyPairCellType cellProductionDI   = new ReadOnlyPairCellType(LookupProductionDI, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.PRODUCTION_DI].CellType = cellProductionDI;

            // Matchine Supplier
            NZString[] MatSupplier       = new NZString[] { (NZString)DataDefine.Convert2ClassCode(DataDefine.eLOCATION_CLS.Vendor), (NZString)DataDefine.Convert2ClassCode(DataDefine.eLOCATION_CLS.CustomerVendor) };
            LookupData LookupMatSupplier = bizLookup.LoadLookupLocation(MatSupplier);

            ReadOnlyPairCellType cellMatSupplier = new ReadOnlyPairCellType(LookupMatSupplier.Clone(), CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.MAT_SUPPLIER_CD].CellType = cellMatSupplier;

            ReadOnlyPairCellType cellPlatingSupplier = new ReadOnlyPairCellType(LookupMatSupplier.Clone(), CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.PLATING_SUPPLIER_CD].CellType = cellPlatingSupplier;

            // Matchine DI
            LookupData           LookupMatDI = bizLookup.LoadLookupClassType(DataDefine.MAT_DI.ToNZString());
            ReadOnlyPairCellType cellMatDI   = new ReadOnlyPairCellType(LookupMatDI, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.MAT_DI].CellType = cellMatDI;

            // Item Level
            LookupData           LookupItemLevel = bizLookup.LoadLookupClassType(DataDefine.ITEM_LEVEL.ToNZString());
            ReadOnlyPairCellType cellItemLevel   = new ReadOnlyPairCellType(LookupItemLevel, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.ITEM_LEVEL].CellType = cellItemLevel;

            // Screw Kind
            LookupData           LookupScrewKind = bizLookup.LoadLookupClassType(DataDefine.SCREW_KIND.ToNZString());
            ReadOnlyPairCellType cellScrewKind   = new ReadOnlyPairCellType(LookupScrewKind, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.SCREW_KIND].CellType = cellScrewKind;

            // Screw Head
            LookupData           LookupScrewHead = bizLookup.LoadLookupClassType(DataDefine.SCREW_HEAD.ToNZString());
            ReadOnlyPairCellType cellScrewHead   = new ReadOnlyPairCellType(LookupScrewHead, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.SCREW_HEAD].CellType = cellScrewHead;

            // Screw Type
            LookupData           LookupScrewType = bizLookup.LoadLookupClassType(DataDefine.SCREW_TYPE.ToNZString());
            ReadOnlyPairCellType cellScrewType   = new ReadOnlyPairCellType(LookupScrewType, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.SCREW_TYPE].CellType = cellScrewType;

            // Screw Remark1
            LookupData           LookupScrewRemark1 = bizLookup.LoadLookupClassType(DataDefine.SCREW_REMARK1.ToNZString());
            ReadOnlyPairCellType cellScrewRemark1   = new ReadOnlyPairCellType(LookupScrewRemark1, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.SCREW_REMARK1].CellType = cellScrewRemark1;

            // Screw Remark2
            LookupData           LookupScrewRemark2 = bizLookup.LoadLookupClassType(DataDefine.SCREW_REMARK2.ToNZString());
            ReadOnlyPairCellType cellScrewRemark2   = new ReadOnlyPairCellType(LookupScrewRemark2, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.SCREW_REMARK2].CellType = cellScrewRemark2;

            // Machine Type1
            LookupData           LookupMCType = bizLookup.LoadLookupClassType(DataDefine.MACHINE_TYPE.ToNZString());
            ReadOnlyPairCellType cellMCType1  = new ReadOnlyPairCellType(LookupMCType.Clone(), CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.MACHINE_TYPE1].CellType = cellMCType1;

            // Machine Type2
            ReadOnlyPairCellType cellMCType2 = new ReadOnlyPairCellType(LookupMCType.Clone(), CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.MACHINE_TYPE2].CellType = cellMCType2;

            // Machine Type3
            ReadOnlyPairCellType cellMCType3 = new ReadOnlyPairCellType(LookupMCType.Clone(), CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.MACHINE_TYPE3].CellType = cellMCType3;

            // Machine Type4
            ReadOnlyPairCellType cellMCType4 = new ReadOnlyPairCellType(LookupMCType.Clone(), CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.MACHINE_TYPE4].CellType = cellMCType4;

            // Machine Type5
            ReadOnlyPairCellType cellMCType5 = new ReadOnlyPairCellType(LookupMCType.Clone(), CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.MACHINE_TYPE5].CellType = cellMCType5;

            // Machine Type6
            ReadOnlyPairCellType cellMCType6 = new ReadOnlyPairCellType(LookupMCType.Clone(), CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.MACHINE_TYPE6].CellType = cellMCType6;

            // Process1
            NZString[]           Production       = new NZString[] { (NZString)DataDefine.Convert2ClassCode(DataDefine.eLOCATION_CLS.Production) };
            LookupData           LookupProduction = bizLookup.LoadLookupLocation(Production);
            ReadOnlyPairCellType cellProduction1  = new ReadOnlyPairCellType(LookupProduction.Clone(), CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.PROCESS1].CellType = cellProduction1;

            //Process2
            ReadOnlyPairCellType cellProduction2 = new ReadOnlyPairCellType(LookupProduction.Clone(), CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.PROCESS2].CellType = cellProduction2;

            //Process3
            ReadOnlyPairCellType cellProduction3 = new ReadOnlyPairCellType(LookupProduction.Clone(), CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.PROCESS3].CellType = cellProduction3;

            //Process4
            ReadOnlyPairCellType cellProduction4 = new ReadOnlyPairCellType(LookupProduction.Clone(), CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.PROCESS4].CellType = cellProduction4;

            //Process5
            ReadOnlyPairCellType cellProduction5 = new ReadOnlyPairCellType(LookupProduction.Clone(), CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.PROCESS5].CellType = cellProduction5;

            //Process6
            ReadOnlyPairCellType cellProduction6 = new ReadOnlyPairCellType(LookupProduction.Clone(), CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.PROCESS6].CellType = cellProduction6;

            // HeatTreatmentType
            LookupData           LookupHeatTreatmentType = bizLookup.LoadLookupClassType(DataDefine.HEAT_TREATMENT_TYPE.ToNZString());
            ReadOnlyPairCellType cellTreatmentType       = new ReadOnlyPairCellType(LookupHeatTreatmentType, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.HEAT_TYPE].CellType = cellTreatmentType;

            // KTC Plating
            LookupData           LookupKTCPlating = bizLookup.LoadLookupClassType(DataDefine.KTC_PLATING.ToNZString());
            ReadOnlyPairCellType cellKTCPlating   = new ReadOnlyPairCellType(LookupKTCPlating, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.PLATING_KTC].CellType = cellKTCPlating;

            // Baking Time
            LookupData           LookupBakTime = bizLookup.LoadLookupClassType(DataDefine.BAKING_TIME.ToNZString());
            ReadOnlyPairCellType cellBakTime   = new ReadOnlyPairCellType(LookupBakTime, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.BAKING_TIME].CellType = cellBakTime;

            // Baking Temp
            LookupData           LookupBakTemp = bizLookup.LoadLookupClassType(DataDefine.BAKING_TEMP.ToNZString());
            ReadOnlyPairCellType cellBakTemp   = new ReadOnlyPairCellType(LookupBakTemp, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.BAKING_TEMP].CellType = cellBakTemp;

            // Other Kind
            LookupData           LookupOtherKind = bizLookup.LoadLookupClassType(DataDefine.OTHER_KIND.ToNZString());
            ReadOnlyPairCellType cellOtherKind1  = new ReadOnlyPairCellType(LookupOtherKind.Clone(), CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.OTHER_TREATMENT1_KIND].CellType = cellOtherKind1;

            ReadOnlyPairCellType cellOtherKind2 = new ReadOnlyPairCellType(LookupOtherKind.Clone(), CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.OTHER_TREATMENT2_KIND].CellType = cellOtherKind2;

            // Other Condition
            LookupData           LookupOtherCon = bizLookup.LoadLookupClassType(DataDefine.OTHER_CONDITION.ToNZString());
            ReadOnlyPairCellType cellOtherCon1  = new ReadOnlyPairCellType(LookupOtherCon.Clone(), CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.OTHER_TREATMENT1_CONDITION].CellType = cellOtherCon1;

            ReadOnlyPairCellType cellOtherCon2 = new ReadOnlyPairCellType(LookupOtherCon.Clone(), CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            shtItemView.Columns[(int)eColView.OTHER_TREATMENT2_CONDITION].CellType = cellOtherCon2;

            //shtItemView.Columns[(int)eColView.CRT_DATE].CellType = CtrlUtil.CreateDateTimeCellType();
            //shtItemView.Columns[(int)eColView.UPD_DATE].CellType = CtrlUtil.CreateDateTimeCellType();

            shtItemView.Columns[(int)eColView.HEAT_FLAG].CellType                        = CtrlUtil.CreateCheckboxCellType();
            shtItemView.Columns[(int)eColView.HEAT_FLAG].HorizontalAlignment             = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
            shtItemView.Columns[(int)eColView.PLATING_FLAG].CellType                     = CtrlUtil.CreateCheckboxCellType();
            shtItemView.Columns[(int)eColView.PLATING_FLAG].HorizontalAlignment          = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
            shtItemView.Columns[(int)eColView.BAKING_FLAG].CellType                      = CtrlUtil.CreateCheckboxCellType();
            shtItemView.Columns[(int)eColView.BAKING_FLAG].HorizontalAlignment           = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
            shtItemView.Columns[(int)eColView.OTHER_TREATMENT1_FLAG].CellType            = CtrlUtil.CreateCheckboxCellType();
            shtItemView.Columns[(int)eColView.OTHER_TREATMENT1_FLAG].HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;
            shtItemView.Columns[(int)eColView.OTHER_TREATMENT2_FLAG].CellType            = CtrlUtil.CreateCheckboxCellType();
            shtItemView.Columns[(int)eColView.OTHER_TREATMENT2_FLAG].HorizontalAlignment = FarPoint.Win.Spread.CellHorizontalAlignment.Center;



            FormatUtil.SetNumberFormat(shtItemView.Columns[(int)eColView.WEIGHT], FormatUtil.eNumberFormat.Qty_Gram);
            FormatUtil.SetNumberFormat(shtItemView.Columns[(int)eColView.ITEM_CD], FormatUtil.eNumberFormat.MasterNo);

            FormatUtil.SetDateTimeFormat(shtItemView.Columns[(int)eColView.CRT_DATE]);
            FormatUtil.SetDateTimeFormat(shtItemView.Columns[(int)eColView.UPD_DATE]);

            //// Lookup Item Type
            //LookupData lookupItemType = bizLookup.LoadLookupClassType(DataDefine.ITEM_CLS.ToNZString());
            //// Lookup Lot Control
            //LookupData lookupLotControl = bizLookup.LoadLookupClassType(DataDefine.LOT_CONTROL_CLS.ToNZString());
            //// Lookup Lot Customer
            //LookupData lookupCustomer = bizLookup.LoadLookupLocation();// bizLookup.LoadLookupClassType(DataDefine.LOCATION_CLS.ToNZString());
            //// Lookup OrderLoc
            //LookupData lookupOrderLoc = bizLookup.LoadLookupLocation();
            //// Lookup ORDER_PROCESS_CLS
            //LookupData lookupOrderProcess = bizLookup.LoadLookupClassType(new NZString(null, DataDefine.ORDER_PROCESS_CLS));
            //// Lookup StoreLoc
            //LookupData lookupStoreLoc = bizLookup.LoadLookupLocation();
            //// Lookup CustoemrLoc
            //LookupData lookupCustoemrLoc = bizLookup.LoadLookupLocation();
            //// Lookup Consumption
            //LookupData lookupConsumption = bizLookup.LoadLookupClassType(new NZString(null, DataDefine.CONSUMPTION_CLS));
            //// Lookup InventUM
            //LookupData lookupInventUM = bizLookup.LoadLookupClassType(new NZString(null, DataDefine.UM_CLS));
            //// Lookup OrderUM
            //LookupData lookupOrderUM = bizLookup.LoadLookupClassType(new NZString(null, DataDefine.UM_CLS));

            //ReadOnlyPairCellType ItemTypecellType = new ReadOnlyPairCellType(lookupItemType, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);
            //ReadOnlyPairCellType LotControlcellType = new ReadOnlyPairCellType(lookupLotControl, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);
            //ReadOnlyPairCellType CustomercellType = new ReadOnlyPairCellType(lookupCustomer, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);
            //ReadOnlyPairCellType OrderProcess = new ReadOnlyPairCellType(lookupOrderProcess, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);
            //ReadOnlyPairCellType OrderLoc = new ReadOnlyPairCellType(lookupOrderLoc, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);
            //ReadOnlyPairCellType StoreLoc = new ReadOnlyPairCellType(lookupStoreLoc, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);
            //ReadOnlyPairCellType CustoemrLoc = new ReadOnlyPairCellType(lookupCustoemrLoc, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);
            //ReadOnlyPairCellType Consumption = new ReadOnlyPairCellType(lookupConsumption, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);
            //ReadOnlyPairCellType InventUM = new ReadOnlyPairCellType(lookupInventUM, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);
            //ReadOnlyPairCellType OrderUM = new ReadOnlyPairCellType(lookupOrderUM, CommonLib.Common.COMBOBOX_SEPERATOR_SYMBOL);

            //shtItemView.Columns[(int)eColView.ORDER_UM_CLS1].CellType = OrderUM;
            //shtItemView.Columns[(int)eColView.INV_UM_CLS1].CellType = InventUM;
            //shtItemView.Columns[(int)eColView.STORE_LOC_CD1].CellType = StoreLoc;
            //shtItemView.Columns[(int)eColView.ORDER_LOC_CD1].CellType = OrderLoc;
            //shtItemView.Columns[(int)eColView.ORDER_PROCESS_CLS1].CellType = OrderProcess;
            //shtItemView.Columns[(int)eColView.FOR_CUSTOMER1].CellType = CustomercellType;
            //shtItemView.Columns[(int)eColView.LOT_CONTROL_CLS1].CellType = LotControlcellType;
            //shtItemView.Columns[(int)eColView.ITEM_CLS].CellType = ItemTypecellType;
            //shtItemView.Columns[(int)eColView.ITEM_CLS_MINOR1].CellType = CtrlUtil.CreateReadOnlyPairCellType(bizLookup.LoadLookupClassType((NZString)DataDefine.ITEM_CLS_MINOR04));
            //shtItemView.Columns[(int)eColView.CONSUMTION_CLS1].CellType = Consumption;
        }