Ejemplo n.º 1
0
        private decimal getItemPrice(string itemcode, decimal size)
        {
            decimal p      = 0;
            var     pdlist = from d in pricebill.PRICEBILLDTL
                             where d.ITEMCODE == itemcode
                             select d;

            if (pdlist.Count() > 0)
            {
                DM_PRICEBILLDTL pd = pdlist.First();
                decimal         c  = size - pd.BASICSIZE;

                if (c >= 0)
                {
                    p = pd.BASICPRICE + c * pd.ADDPRICE;
                }
                else
                {
                    p = pd.BASICPRICE + c * pd.SUBPRICE;
                }
            }
            return(p);
        }
Ejemplo n.º 2
0
 public override void AddRow()
 {
     DM_PRICEBILLDTL saledtl = gGrid1.AddRow <DM_PRICEBILLDTL>();
 }