Esempio n. 1
0
 public TimeSlotEdit(TimeSlot timeSlot)
 {
     InitializeComponent();
     _timeSlot = timeSlot;
     _context  = DataService.context;
     DataService.PopulateFromList(DataService.GetDictAll("Депозиторы"), cmbDepositor);
 }
Esempio n. 2
0
 public UserGroupEdit(UserGroup userGroup, List <UserGrpPrvlg> grpPrvlg)
 {
     InitializeComponent();
     _userGroup = userGroup;
     _grpPrvlg  = grpPrvlg;
     _context   = DataService.context;
 }
Esempio n. 3
0
 public ShipmentAdd(ShipmentParam shipmentAddResult)
 {
     InitializeComponent();
     _context = DataService.context;
     //_shipment = shipment;
     _shipmentAddResult = shipmentAddResult;
 }
Esempio n. 4
0
 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;
 }
Esempio n. 5
0
 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;
 }
Esempio n. 6
0
 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);
 }
Esempio n. 7
0
        public shipmen_edit(Shipment shipment)
        {
            InitializeComponent();

            _context               = DataService.context;
            _shipment              = shipment;
            IsShipment             = true;
            gbMovementItem.Visible = false;

            this.Text = _shipment.ShIn == false? "Редактирование отгрузки": "Редактирование поставки";
            AddHistory(shipment.Id);
        }
Esempio n. 8
0
 public static void InitContext()
 {
     context = new PlanningDbContext(entityConnectionString);
 }
Esempio n. 9
0
 public DepositorEdit(Depositor depositor)
 {
     InitializeComponent();
     _context   = DataService.context;
     _depositor = depositor;
 }
Esempio n. 10
0
 public ShipmentElementEdit(ShipmentElement shipmentElement)
 {
     InitializeComponent();
     _shipmentElement = shipmentElement;
     _context         = DataService.context;
 }