コード例 #1
0
        /// <summary>
        /// 查询结果
        /// </summary>
        /// <param name="ordernum"></param>
        private void BindResult(string ordernum)
        {
            OrderTestService orderTestService = new OrderTestService();
            Hashtable        ht = new Hashtable();

            ht.Add("ordernum", ordernum);
            gdOrdertest.DataSource = orderTestService.DataForOrderLabdeptresult(ht);
            gdOrdertest.DataBind();
        }
コード例 #2
0
ファイル: ProDataResult.aspx.cs プロジェクト: bigbigwood/daan
        private void BindData(string ordernum)
        {
            try
            {
                OrdersService service = new OrdersService();
                Orders        orders  = new Orders();

                orders = service.SelectOrdersByOrdernum(ordernum);
                if (orders == null)
                {
                    return;
                }

                //体检流水号客户的基本信息
                tbxName.Text     = orders.Realname;
                tbxAge.Text      = orders.Age;
                tbxCustomer.Text = orders.Customername;
                if (orders.Enterdate.HasValue)
                {
                    tbxEnterdate.Text = orders.Enterdate.Value.ToShortDateString();
                }
                tbxOrdernum.Text = ordernum;
                tbxSex.Text      = orders.Sex;

                //体检流水号查询客户的检测项目列表
                Hashtable ht = new Hashtable();
                ht["OrderNum"] = ordernum;
                ht["UserId"]   = Userinfo.userId;
                OrderTestService  testservice = new OrderTestService();
                IList <Ordertest> testList    = testservice.GetOrderLabdeptresultList(ht);
                this.gvList.DataSource = testList;
                this.gvList.DataBind();
            }
            catch
            {
                MessageBoxShow("操作发生异常,请于管理员联系", MessageBoxIcon.Error);
            }
        }