Esempio n. 1
0
 public KOTProd(KOTProd KOT)
 {
     this.MCODE  = KOT.MCODE;
     this.DESCA  = KOT.DESCA;
     this.ISBOT  = KOT.ISBOT;
     SNO         = KOT.SNO;
     Quantity    = KOT.Quantity;
     PAX         = KOT.PAX;
     ItemDesc    = KOT.ItemDesc;
     TRNDATE     = KOT.TRNDATE;
     KOTTIME     = KOT.KOTTIME;
     KOTID       = KOT.KOTID;
     UNIT        = KOT.UNIT;
     RealQty     = KOT.RealQty;
     REALRATE    = KOT.REALRATE;
     RATE        = KOT.RATE;
     AMOUNT      = KOT.AMOUNT;
     NAMNT       = KOT.NAMNT;
     DISCOUNT    = KOT.DISCOUNT;
     DisMode     = KOT.DisMode;
     OrderSNO    = KOT.OrderSNO;
     DecQuantity = 0;
     TABLENO     = KOT.TABLENO;
     Remarks     = KOT.Remarks;
     IsVisible   = KOT.IsVisible;
 }
Esempio n. 2
0
 public static KOTProd  MenuItemsToKOTProd(MenuItem item)
 {
     try
     {
         KOTProd kp = new KOTProd();
         kp.MCODE    = item.MCODE;
         kp.ItemDesc = item.DESCA;
         kp.DESCA    = item.DESCA;
         kp.UNIT     = item.BASEUNIT;
         kp.RATE     = (double)item.RATE_A;
         kp.Quantity = (double)item.QUANTITY;
         kp.SNO      = item.SNO;
         kp.Remarks  = item.REMARKS;
         kp.KOTTIME  = item.KOTTIME;
         kp.DisMode  = item.DisMode;
         if (item.SNO == 0)
         {
             kp.KOTTIME = "not set";
         }
         return(kp);
     }
     catch { return(null); }
 }