Esempio n. 1
0
 public OrderService(ORDER item)
 {
     _item = item;
 }
Esempio n. 2
0
 protected void btnSave_Click(object sender, EventArgs e)
 {
     if (lstOrderDetail != null && lstOrderDetail.Count > 0)
     {
         ORDER order = new ORDER();
         var cmd = new OrderService(order);
         order.Action = ActionEnum.Create;
         order.ORDER_CODE = "";
         order.ORDER_DATE = System.DateTime.Now;
         order.ORDER_STEP = "1";
         order.ORDER_TOTAL = Convert.ToDecimal(lblPrice.Text);
         order.ORDER_APPROVE = "2";
         order.STORE_ID = ((STORE)ViewState["store"]).STORE_ID;
         order.SYE_DEL = true;
         order.CREATE_DATE = System.DateTime.Now;
         order.CREATE_EMPLOYEE_ID = 0;
         order.UPDATE_DATE = System.DateTime.Now;
         order.UPDATE_EMPLOYEE_ID = 0;
         int i = 1;
         foreach (ORDER_DETAIL od in lstOrderDetail)
         {
             od.PRODUCT_SEQ = i++;
         }
         order.ORDER_DETAIL = lstOrderDetail;
         cmd.Add();
         order.ORDER_CODE = "IV" + order.ORDER_ID;
         cmd.Edit();
         Response.Redirect("MainAdmin.aspx");
     }
 }