public TimeSlotEdit(TimeSlot timeSlot) { InitializeComponent(); _timeSlot = timeSlot; _context = DataService.context; DataService.PopulateFromList(DataService.GetDictAll("Депозиторы"), cmbDepositor); }
public UserGroupEdit(UserGroup userGroup, List <UserGrpPrvlg> grpPrvlg) { InitializeComponent(); _userGroup = userGroup; _grpPrvlg = grpPrvlg; _context = DataService.context; }
public ShipmentAdd(ShipmentParam shipmentAddResult) { InitializeComponent(); _context = DataService.context; //_shipment = shipment; _shipmentAddResult = shipmentAddResult; }
public LvAttrEdit(LvAttr attr, int DepId, List <string> attrName) { InitializeComponent(); _attr = attr; _depId = DepId; _context = DataService.context; _attrName = attrName; cmbAttrType.SelectedIndex = _attr.LvaIn == false ? 0 : 1; }
public UserEditEx(User user, bool IsNew) { InitializeComponent(); _user = user; _context = DataService.context; _isNew = IsNew; cbRegType.SelectedIndex = 1; edLogin.Enabled = IsNew; edPassword.Enabled = IsNew; cbRegType.Enabled = IsNew; }
public shipmen_edit(Movement movement) { InitializeComponent(); _context = DataService.context; _movement = movement; IsShipment = false; gbOrders.Visible = false; btnAddToLV.Visible = false; btnBindLV.Visible = false; this.Text = "Редактирование перемещения"; AddHistory(movement.Id); }
public shipmen_edit(Shipment shipment) { InitializeComponent(); _context = DataService.context; _shipment = shipment; IsShipment = true; gbMovementItem.Visible = false; this.Text = _shipment.ShIn == false? "Редактирование отгрузки": "Редактирование поставки"; AddHistory(shipment.Id); }
public static void InitContext() { context = new PlanningDbContext(entityConnectionString); }
public DepositorEdit(Depositor depositor) { InitializeComponent(); _context = DataService.context; _depositor = depositor; }
public ShipmentElementEdit(ShipmentElement shipmentElement) { InitializeComponent(); _shipmentElement = shipmentElement; _context = DataService.context; }