Beispiel #1
0
        private static void AddDeletedRecieveDocs(DataRow recieve)
        {
            var recd = new ReceiveDocDeleted();

            recd.AddNew();
            recd.ID         = (int)recieve["ID"];
            recd.BatchNo    = (string)recieve["BatchNo"];
            recd.ItemID     = (int)recieve["ItemID"];
            recd.SupplierID = (int)recieve["SupplierID"];
            recd.Quantity   = Convert.ToInt64(recieve["Quantity"]);
            recd.Date       = (DateTime)recieve["Date"];
            recd.ExpDate    = (DateTime)recieve["ExpDate"];
            recd.Out        = (bool)recieve["Out"];
            // recd.ReceivedStatus = (int) recieve["ReceivedStatus"];
            // recd.ReceivedBy = (string) recieve["ReceivedBy"];
            //recd.Remark = (string)recieve["Remark"];
            recd.StoreID      = (int)recieve["StoreID"];
            recd.LocalBatchNo = (string)recieve["LocalBatchNo"];
            recd.RefNo        = (string)recieve["RefNo"];
            recd.Cost         = (double)recieve["Cost"];
            recd.IsApproved   = (bool)recieve["IsApproved"];
            // recd.ManufacturerId = (int) recieve["ManufacturerId"];
            recd.QuantityLeft = (long)recieve["QuantityLeft"];
            recd.NoOfPack     = (int)recieve["NoOfPack"];
            recd.QtyPerPack   = (int)recieve["QtyPerPack"];
            // recd.BoxLevel = (int) recieve["BoxLevel"];
            recd.EurDate = (DateTime)recieve["EurDate"];
            // recd.SubProgramID = (int) recieve["SubProgramID"];
            recd.Save();
        }
Beispiel #2
0
        private static void AddReceiveDocDeleted(DataRow dataRow)
        {
            var recd = new ReceiveDocDeleted();

            recd.AddNew();
            recd.ID           = (int)dataRow["ID"];
            recd.BatchNo      = (string)dataRow["BatchNo"];
            recd.ItemID       = (int)dataRow["ItemID"];
            recd.SupplierID   = (int)dataRow["SupplierID"];
            recd.Quantity     = (long)dataRow["Quantity"];
            recd.Date         = (DateTime)dataRow["Date"];
            recd.ExpDate      = (DateTime)dataRow["ExpDate"];
            recd.Out          = (bool)dataRow["Out"];
            recd.StoreID      = (int)dataRow["StoreID"];
            recd.LocalBatchNo = (string)dataRow["LocalBatchNo"];
            recd.RefNo        = (string)dataRow["RefNo"];
            recd.Cost         = (double)dataRow["Cost"];
            recd.IsApproved   = (bool)dataRow["IsApproved"];
            recd.QuantityLeft = (long)dataRow["QuantityLeft"];
            recd.NoOfPack     = (int)dataRow["NoOfPack"];
            recd.QtyPerPack   = (int)dataRow["QtyPerPack"];
            recd.EurDate      = (DateTime)dataRow["EurDate"];
            recd.Save();
        }