Ejemplo n.º 1
0
        internal LotMaintenanceUIDM loaddata(LotMaintenanceUIDM model)
        {
            LotMaintenanceBIZ biz  = new LotMaintenanceBIZ();
            LotMaintenanceDTO data = new LotMaintenanceDTO();

            data.Location       = model.Location;
            data.Item_NO        = model.Item_No;
            data.Item_Name      = model.Item_Name;
            data.LOT_NO         = model.Lot_No;
            data.ShowReserveLot = model.ShowReserveLot;
            List <LotMaintenanceDTO> ListLot = biz.LoadAll(data);

            model.DATA_VIEW = DTOUtility.ConvertListToDataTable <LotMaintenanceDTO>(ListLot);
            return(model);
        }
Ejemplo n.º 2
0
        private void loadData()
        {
            try
            {
                LotMaintenanceController ctlsys = new LotMaintenanceController();
                LotMaintenanceUIDM       model  = dmc.SaveData(new LotMaintenanceUIDM());
                LotMaintenanceUIDM       models = ctlsys.loaddata(model);

                fpView.DataSource = models.DATA_VIEW;

                //for (int i = 0; i < shtView.Rows.Count; i++)
                //{
                //    if (Convert.ToInt32(shtView.Cells[i, (int)eColumns.EDIT_FLAG].Value) == 1)
                //        shtView.Cells[i, (int)eColumns.EDIT_FLAG].Value = true;
                //    else
                //        shtView.Cells[i, (int)eColumns.EDIT_FLAG].Value = false;
                //}
            }
            catch (Exception ex)
            {
                MessageDialog.ShowBusiness(this, ex.Message);
            }
        }