コード例 #1
0
        public void init()
        {
            this.customerHistoricalPricingFlag = false;
            this.syncid         = 0;
            this.barcode        = "";
            this.singlebarcode  = "";
            this.productname    = "";
            this.qty            = 1;
            this.price          = 0;
            this.wholesaleprice = 0;
            this.memo           = "";

            this.retailpprice = 0;
            this.retailprice  = 0;

            this.amount           = 0;
            this.pprice           = 0;
            this.origprice        = 0;
            this.vat              = 0;
            this.soldby           = new cls_user();
            this.price_suffix     = "";
            this.isvat            = true;
            this.issenior         = 0;
            this.adjust           = 0;
            this.discount         = 0;
            this.productmode      = "";
            this.transaction_mode = "vatable_sale";

            this.productdiscount = new cls_discountlist(1);

            this.is_history = false;
        }
コード例 #2
0
        public cls_productlist()
        {
            this.transDiscount = new cls_discountlist(0);

            this.list_product = new List <cls_product>();

            this.dtproducts = new DataTable();
            this.dtproducts.Columns.Add("VatStatus");
            this.dtproducts.Columns.Add("productname");
            this.dtproducts.Columns.Add("qty");
            this.dtproducts.Columns.Add("price");
            this.dtproducts.Columns.Add("amount");

            this.isnonvat    = false;
            this.iswholesale = false;
            this.issenior    = false;
            this.customer    = new cls_customer();
        }