Ejemplo n.º 1
0
 public ReportBalanceTable(ReportBalance reportBalance, Product product, StoreCell storeCell, Storehouse storehouse)
 {
     this.product       = product;
     this.storehouse    = storehouse;
     this.storeCell     = storeCell;
     this.reportBalance = reportBalance;
 }
Ejemplo n.º 2
0
 public ContractMoveTable(ContractMove contractMove, StoreCell storeCellFrom, StoreCell storeCellTo, Storehouse storehouseFrom, Storehouse storehouseTo)
 {
     this.contractMove   = contractMove;
     this.storeCellFrom  = storeCellFrom;
     this.storeCellTo    = storeCellTo;
     this.storehouseFrom = storehouseFrom;
     this.storehouseTo   = storehouseTo;
 }
Ejemplo n.º 3
0
 public bool queryAddStoreCell(StoreCell c)
 {
     if (LoginInfo.Position == 1 || LoginInfo.Position == 2 || LoginInfo.Position == 3)
     {
         using (DataBaseContext db = new DataBaseContext())
         {
             try
             {
                 db.StoreCells.Add(c);
                 db.SaveChanges();
             }
             catch (Exception e)
             {
                 return(false);
             }
             return(true);
         }
     }
     return(false);
 }
Ejemplo n.º 4
0
        public bool queryDeleteStoreCell(int Id)
        {
            if (LoginInfo.Position == 1 || LoginInfo.Position == 2 || LoginInfo.Position == 3)
            {
                using (DataBaseContext db = new DataBaseContext())
                {
                    try
                    {
                        StoreCell p = db.StoreCells.Find(Id);
                        db.StoreCells.Remove(p);

                        db.SaveChanges();
                    }
                    catch (Exception e)
                    {
                        return(false);
                    }
                    return(true);
                }
            }
            return(false);
        }
Ejemplo n.º 5
0
        public bool queryUpdateStoreCell(StoreCell c)
        {
            if (LoginInfo.Position == 1 || LoginInfo.Position == 2 || LoginInfo.Position == 3)
            {
                using (DataBaseContext db = new DataBaseContext())
                {
                    try
                    {
                        StoreCell p = db.StoreCells.Find(c.Id);

                        p.Description  = c.Description;
                        p.StorehouseId = c.StorehouseId;

                        db.SaveChanges();
                    }
                    catch (Exception e)
                    {
                        return(false);
                    }
                    return(true);
                }
            }
            return(false);
        }
Ejemplo n.º 6
0
 public StoreCellTable(StoreCell storeCell, Storehouse storehouse)
 {
     this.storeCell  = storeCell;
     this.storehouse = storehouse;
 }
Ejemplo n.º 7
0
 public ContractShipmentTable(ContractShipment contractShipment, StoreCell storeCellFrom, Storehouse storehouseFrom)
 {
     this.contractShipment = contractShipment;
     this.storeCellFrom    = storeCellFrom;
     this.storehouseFrom   = storehouseFrom;
 }