/// <summary>
 /// 建立新 contact_info 物件。
 /// </summary>
 /// <param name="id">id 屬性的初始值。</param>
 /// <param name="publish">publish 屬性的初始值。</param>
 public static contact_info Createcontact_info(global::System.Int32 id, global::System.Boolean publish)
 {
     contact_info contact_info = new contact_info();
     contact_info.id = id;
     contact_info.publish = publish;
     return contact_info;
 }
 /// <summary>
 /// 將新物件加入 contact_info EntitySet 的方法已被取代。請考慮改為使用關聯的 ObjectSet&lt;T&gt; 屬性的 .Add 方法。
 /// </summary>
 public void AddTocontact_info(contact_info contact_info)
 {
     base.AddObject("contact_info", contact_info);
 }
 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;
 }