Ejemplo n.º 1
0
 private void CreateList()
 {
     CustomerService cusContext = new CustomerService(new BizCustomerOrder());
     ddlCusContacts.DataSource = cusContext.GetCustomerList();
     ddlCusContacts.DataValueField = "CustomerID";
     ddlCusContacts.DataTextField = "ContactName";
     ddlCusContacts.DataBind();
 }
Ejemplo n.º 2
0
 private void GetHttpGetParam()
 {
     if(Request["customerid"]!=null)
     {
         labContactID.Text = Request["customerid"];
         CustomerService cusContext = new CustomerService(new BizCustomerOrder());
         object customerName = cusContext.GetCustomerByCustomerID(labContactID.Text);
         if(customerName!=null)
         {
             txtContactName.Text = customerName.ToString();
         }
     }
 }
Ejemplo n.º 3
0
 private void GetOrderDataByCus(string CusID)
 {
     CustomerService cusContext = new CustomerService(new BizCustomerOrder());
     gvOrderDetails.DataSource = cusContext.GetByCusID(CusID);
     gvOrderDetails.DataBind();
 }