Example #1
0
 private void txtItem_KeyPressResult(object sender, bool isFound, EVOFramework.NZString ItemCD)
 {
     if (!isFound)
     {
         shtView.RowCount  = 0;
         fpView.DataSource = null;
         UpdateUpDownButton();
     }
     else
     {
         LoadData();
     }
 }
Example #2
0
        internal Image LoadImageForItem(EVOFramework.NZString ItemCD)
        {
            ItemImageBIZ biz = new ItemImageBIZ();
            ItemImageDTO dto = biz.LoadImage(ItemCD);

            if (dto == null)
            {
                return(null);
            }
            // Convert byte array to Image.
            byte[]       byteArray    = dto.IMAGE.StrongValue;
            MemoryStream memoryStream = new MemoryStream(byteArray);
            Image        img          = Image.FromStream(memoryStream);

            return(img);
        }
Example #3
0
        internal void ReMoveImage(EVOFramework.NZString ItemCD)
        {
            ItemImageBIZ biz = new ItemImageBIZ();

            biz.DeleteImage(ItemCD);
        }
Example #4
0
        internal ItemUIDM LoadItem(EVOFramework.NZString ItemCD)
        {
            ItemBIZ biz = new ItemBIZ();

            ItemDTO dtoItem = biz.LoadItem(ItemCD);
            List <ItemViewProcessDTO> dtoItemProcess   = biz.LoadItemProcessList(ItemCD);
            List <ItemComponentDTO>   dtoItemComponent = biz.LoadItemComponentList(ItemCD);
            List <ItemMachineDTO>     dtoItemMachine   = biz.LoadItemMachineByItemCD(ItemCD);

            #region ITEM uidm
            ItemUIDM uidm = new ItemUIDM();
            uidm.CRT_BY             = dtoItem.CRT_BY;
            uidm.CRT_DATE           = dtoItem.CRT_DATE;
            uidm.CRT_MACHINE        = dtoItem.CRT_MACHINE;
            uidm.UPD_BY             = dtoItem.UPD_BY;
            uidm.UPD_DATE           = dtoItem.UPD_DATE;
            uidm.UPD_MACHINE        = dtoItem.UPD_MACHINE;
            uidm.ITEM_CD            = dtoItem.ITEM_CD;
            uidm.SHORT_NAME         = dtoItem.SHORT_NAME;
            uidm.ITEM_DESC          = dtoItem.ITEM_DESC;
            uidm.KIND_OF_PRODUCT    = dtoItem.KIND_OF_PRODUCT;
            uidm.CUSTOMER_CD        = dtoItem.CUSTOMER_CD;
            uidm.CUSTOMER_USE_POINT = dtoItem.CUSTOMER_USE_POINT;
            uidm.WEIGHT             = dtoItem.WEIGHT;
            uidm.BOI                        = dtoItem.BOI;
            uidm.PRODUCTION_DI              = dtoItem.PRODUCTION_DI;
            uidm.ITEM_LEVEL                 = dtoItem.ITEM_LEVEL;
            uidm.MAT_NAME                   = dtoItem.MAT_NAME;
            uidm.MAT_SIZE                   = dtoItem.MAT_SIZE;
            uidm.SUPPLIER_NAME              = dtoItem.MAT_SUPPLIER_CD;
            uidm.KIND_OF_MAT                = dtoItem.KIND_OF_MAT;
            uidm.MAT_DI                     = dtoItem.MAT_DI;
            uidm.REMARK                     = dtoItem.REMARK;
            uidm.SCREW_KIND                 = dtoItem.SCREW_KIND;
            uidm.SCREW_HEAD                 = dtoItem.SCREW_HEAD;
            uidm.SCREW_M                    = dtoItem.SCREW_M;
            uidm.SCREW_L                    = dtoItem.SCREW_L;
            uidm.SCREW_TYPE                 = dtoItem.SCREW_TYPE;
            uidm.SCREW_REMARK1              = dtoItem.SCREW_REMARK1;
            uidm.SCREW_REMARK2              = dtoItem.SCREW_REMARK2;
            uidm.HEXABULAR                  = dtoItem.HEXABULAR;
            uidm.HEAT_FLAG                  = dtoItem.HEAT_FLAG;
            uidm.HEAT_TYPE                  = dtoItem.HEAT_TYPE;
            uidm.HEAT_HARDNESS              = dtoItem.HEAT_HARDNESS;
            uidm.HEAT_CORE_HARDNESS         = dtoItem.HEAT_CORE_HARDNESS;
            uidm.HEAT_CASE_DEPTH            = dtoItem.HEAT_CASE_DEPTH;
            uidm.PLATING_FLAG               = dtoItem.PLATING_FLAG;
            uidm.PLATING_KIND               = dtoItem.PLATING_KIND;
            uidm.PLATING_SUPPLIER_NAME      = dtoItem.PLATING_SUPPLIER_CD;
            uidm.PLATING_THICKNESS1_1       = dtoItem.PLATING_THICKNESS1_1;
            uidm.PLATING_THICKNESS1_2       = dtoItem.PLATING_THICKNESS1_2;
            uidm.PLATING_THICKNESS2_1       = dtoItem.PLATING_THICKNESS2_1;
            uidm.PLATING_THICKNESS2_2       = dtoItem.PLATING_THICKNESS2_2;
            uidm.PLATING_KTC                = dtoItem.PLATING_KTC;
            uidm.BAKING_FLAG                = dtoItem.BAKING_FLAG;
            uidm.BAKING_TIME                = dtoItem.BAKING_TIME;
            uidm.BAKING_TEMP                = dtoItem.BAKING_TEMP;
            uidm.OTHER_TREATMENT1_FLAG      = dtoItem.OTHER_TREATMENT1_FLAG;
            uidm.OTHER_TREATMENT1_KIND      = dtoItem.OTHER_TREATMENT1_KIND;
            uidm.OTHER_TREATMENT1_CONDITION = dtoItem.OTHER_TREATMENT1_CONDITION;
            uidm.OTHER_TREATMENT2_FLAG      = dtoItem.OTHER_TREATMENT2_FLAG;
            uidm.OTHER_TREATMENT2_KIND      = dtoItem.OTHER_TREATMENT2_KIND;
            uidm.OTHER_TREATMENT2_CONDITION = dtoItem.OTHER_TREATMENT2_CONDITION;
            uidm.OLD_DATA                   = dtoItem.OLD_DATA;
            #endregion

            uidm.DataView = DTOUtility.ConvertListToDataTable <ItemViewProcessDTO>(dtoItemProcess);
            uidm.DataView.AcceptChanges();
            uidm.DataComponentView = DTOUtility.ConvertListToDataTable <ItemComponentDTO>(dtoItemComponent);
            uidm.DataComponentView.AcceptChanges();
            uidm.DataItemMachine = DTOUtility.ConvertListToDataTable <ItemMachineDTO>(dtoItemMachine);
            uidm.DataItemMachine.AcceptChanges();

            return(uidm);
        }
Example #5
0
        internal void DeleteItem(EVOFramework.NZString ItemCD)
        {
            ItemBIZ biz = new ItemBIZ();

            biz.DeleteItem(ItemCD);
        }
Example #6
0
        public InventoryPeriodDTO LoadByPK(EVOFramework.NZString YearMonth)
        {
            InventoryPeriodDAO dao = new InventoryPeriodDAO(CommonLib.Common.CurrentDatabase);

            return(dao.LoadByPK(null, YearMonth));
        }
Example #7
0
        internal bool isExistMenuSet(EVOFramework.NZString MenuSetCD)
        {
            IMenuSetDAO dao = DAOFactory.CreateMenuSetDAO(CommonLib.Common.CurrentDatabase);

            return(dao.Exist(null, MenuSetCD));
        }