Example #1
0
        public ActionResult OrderInfos(int page, int limit, string test1, string test2,
                                       string Province, string CompanyCity, string CompanyUnderCity,
                                       string CompanyUnderArea, string OrderNo, string UnitName, string BKDH, string OrderState, string CostState)
        {
            PageModel ret = new PageModel();

            BLL.OrderInfoBLL     _BLL      = new OrderInfoBLL();
            PMS.Models.UserModel userModel = Session["UserModel"] as PMS.Models.UserModel;
            string OrgID = "";

            if (Province._ToInt32() > 0)
            {
                OrgID = Province;
            }
            if (CompanyCity._ToInt32() > 0)
            {
                OrgID = CompanyCity;
            }
            if (CompanyUnderCity._ToInt32() > 0)
            {
                OrgID = CompanyUnderCity;
            }
            if (CompanyUnderArea._ToInt32() > 0)
            {
                OrgID = CompanyUnderArea;
            }
            PageModel pg = _BLL.GetOrderInfo(0, BKDH, OrderNo, UnitName, test1, test2,
                                             userModel.OrgID._ToStr(), OrgID, OrderState, CostState, limit, page);
            var js = JsonConvert.SerializeObject(pg);

            return(Content(js));
        }
        private void frmOrderPay_Load(object sender, EventArgs e)
        {
            TableInfo ti      = this.Tag as TableInfo;
            int       orderId = oiBll.GetOrderId(ti.TId);

            oi = oiBll.GetOrderInfo(orderId);
            lblPayMoney.Text         = GetPayMoney().ToString();
            lblPayMoneyDiscount.Text = (Convert.ToDecimal(lblPayMoney.Text) * Convert.ToDecimal(lblDiscount.Text)).ToString();
        }