Example #1
0
        /// <summary>
        /// PaymentDetails : DataTable To Object
        /// </summary>
        /// <param name="table"></param>
        public static int ReadPaymentDetails(DataTable table)
        {
            VPaymentMode vPayMode;
            int          id = 1;

            foreach (var row in table.AsEnumerable())
            {
                vPayMode              = new VPaymentMode();
                vPayMode.PaymentMode  = (string)row[VBEle.mode];
                vPayMode.PaymentValue = (string)row[VBEle.value];
                vBill.AddPaymentMode(vPayMode);
            }
            return(id);
        }
        /// <summary>
        /// PaymentDetails : DataTable To Object
        /// </summary>
        /// <param name="table"></param>
        private int ReadPaymentDetails(DataTable table)
        {
            VPaymentMode vPayMode;
            int          id = 1;

            foreach (var row in table.AsEnumerable())
            {
                vPayMode = new VPaymentMode
                {
                    PaymentMode  = (string)row[VBEle.mode],
                    PaymentValue = (string)row[VBEle.value]
                };
                vBill.AddPaymentMode(vPayMode);
            }
            table.EndLoadData();
            return(id);
        }
 partial void DeleteVPaymentMode(VPaymentMode instance);
 partial void UpdateVPaymentMode(VPaymentMode instance);
 partial void InsertVPaymentMode(VPaymentMode instance);
Example #6
0
 public void AddPaymentMode(VPaymentMode vPaymentMode)
 {
     payModes.Add(vPaymentMode);
 }