/// <summary>
 /// 建立新 clientapplicant 物件。
 /// </summary>
 /// <param name="id">id 屬性的初始值。</param>
 /// <param name="clientapplicant_type">clientapplicant_type 屬性的初始值。</param>
 /// <param name="potential_client">potential_client 屬性的初始值。</param>
 /// <param name="publish">publish 屬性的初始值。</param>
 public static clientapplicant Createclientapplicant(global::System.Int32 id, global::System.Byte clientapplicant_type, global::System.Boolean potential_client, global::System.Boolean publish)
 {
     clientapplicant clientapplicant = new clientapplicant();
     clientapplicant.id = id;
     clientapplicant.clientapplicant_type = clientapplicant_type;
     clientapplicant.potential_client = potential_client;
     clientapplicant.publish = publish;
     return clientapplicant;
 }
 protected void Bill_Data(clientapplicant clinet, contact_info obj)
 {
     txtBill_Name.Text = obj.fname + " " + obj.lname;
     txtBill_Title.Text = obj.title;
     txtBillCompanyname.Text = obj.companyname;
     txtBill_CName.Text = obj.c_lname + obj.c_fname;
     txtBill_CTitle.Text = obj.c_title;
     txtBill_CCompanyname.Text = obj.c_companyname;
     txtBill_Phone.Text = obj.workphone + " ext " + obj.ext;
     txtBill_Email.Text = obj.email;
     txtBill_Country.Text = CodeTableController.GetCountryName((int)obj.country_id);
     txtBill_Address.Text = obj.address;
     txtBill_CAddress.Text = obj.c_address;
     ddlPaymentDays.SelectedValue = clinet.paymentdays.ToString();
     ddlPayment_Term.SelectedValue = clinet.paymentterm.ToString();
     txtDHL.Text = clinet.dhl_acct;
 }
 /// <summary>
 /// 將新物件加入 clientapplicant EntitySet 的方法已被取代。請考慮改為使用關聯的 ObjectSet&lt;T&gt; 屬性的 .Add 方法。
 /// </summary>
 public void AddToclientapplicant(clientapplicant clientapplicant)
 {
     base.AddObject("clientapplicant", clientapplicant);
 }
 protected void Bill_Data(clientapplicant obj)
 {
     txtBill_Name.Text = obj.bill_firstname + " " + obj.bill_lastname;
     txtBill_Title.Text = obj.bill_title;
     txtBillCompanyname.Text = obj.bill_companyname;
     txtBill_CName.Text = obj.c_bill_lastname + obj.c_bill_firstname;
     txtBill_CTitle.Text = obj.bill_title;
     txtBill_CCompanyname.Text = obj.bill_ccompanyname;
     txtBill_Phone.Text = obj.bill_workphone;
     txtBill_Email.Text = obj.bill_email;
     txtBill_Country.Text = CodeTableController.GetCountryName((int)obj.country_id);
     txtBill_Address.Text = obj.bill_address;
     txtBill_CAddress.Text = obj.bill_caddress;
     //txtPayment_Days.Text = obj.paymentdays.ToString();
     ddlPaymentDays.SelectedValue = obj.paymentdays.ToString();
     ddlPayment_Term.SelectedValue = obj.paymentterm.ToString();
     //txtClient_Status.Text = obj.clientstatus;
     txtDHL.Text = obj.dhl_acct;
 }