コード例 #1
0
ファイル: MyOrder.aspx.cs プロジェクト: windygu/XiaZhou
        /// <summary>
        /// 获取座位人数
        /// </summary>
        /// <param name="orderid"></param>
        /// <returns></returns>
        private string GetPeopleNum(string orderid)
        {
            EyouSoft.BLL.TourStructure.BTourOrder         bll        = new EyouSoft.BLL.TourStructure.BTourOrder();
            EyouSoft.Model.TourStructure.MTourOrderExpand orderModel = bll.GetTourOrderExpandByOrderId(orderid);
            int peonum = 0;

            if (orderModel != null)
            {
                peonum = orderModel.Adults + orderModel.Childs;
            }
            return(peonum.ToString());
        }
コード例 #2
0
ファイル: SetContract.aspx.cs プロジェクト: windygu/XiaZhou
 private void PageInitForOrder(string orderID)
 {
     EyouSoft.BLL.TourStructure.BTourOrder         bll        = new EyouSoft.BLL.TourStructure.BTourOrder();
     EyouSoft.Model.TourStructure.MTourOrderExpand orderModel = bll.GetTourOrderExpandByOrderId(orderID);
     if (orderModel != null)
     {
         this.lblOrderNum.Text       = orderModel.OrderCode;
         this.ltrBuyCompanyName.Text = orderModel.BuyCompanyName;
         txtHeTongHao.HeTongId       = orderModel.ContractId;
         txtHeTongHao.HeTongCode     = orderModel.ContractCode;
     }
     else
     {
         Utils.ResponseGoBack();
     }
 }