コード例 #1
0
ファイル: CustomerinfoForm.cs プロジェクト: xiciliu/MEMS
        protected override void AddObject()
        {
            T_Customer newcustomer = new T_Customer();

            newcustomer.customerno     = txt_cpno.Text;
            newcustomer.customername   = txt_copname.Text;
            newcustomer.simplename     = txt_copsname.Text;
            newcustomer.country        = txt_country.Text;
            newcustomer.website        = txt_website.Text;
            newcustomer.companyaddress = txt_address.Text;
            newcustomer.city           = txt_city.Text;
            newcustomer.customerdesc   = txt_customerdesc.Text;
            newcustomer.email          = txt_email.Text;
            newcustomer.accountname    = txt_cw_accountname.Text;
            newcustomer.accountno      = txt_cw_accountno.Text;
            newcustomer.invoiceaddress = txt_cw_address.Text;
            newcustomer.bank           = txt_cw_bank.Text;
            newcustomer.taxcode        = txt_cw_taxcode.Text;
            newcustomer.fax            = txt_fax.Text;
            newcustomer.postcode       = txt_postcode.Text;
            newcustomer.productinfo    = txt_productinfo.Text;
            newcustomer.phone          = txt_phone.Text;
            newcustomer.province       = txt_province.Text;
            newcustomer.remarks        = txt_remark.Text;
            newcustomer.customertype   = cmb_customertype.SelectedText;
            newcustomer.companytype    = cmb_companytype.SelectedText;
            newcustomer.profession     = cmb_profession.SelectedText;
            var client = new CRMServiceClient();

            client.AddNewCustomer(newcustomer);
            saveAddress();
            saveContact();
            base.AddObject();
        }
コード例 #2
0
ファイル: CustomerinfoForm.cs プロジェクト: eseawind/MEMS
 protected override void AddObject()
 {
     T_Customer newcustomer = new T_Customer();
     newcustomer.customerno = txt_cpno.Text;
     newcustomer.customername = txt_copname.Text;
     newcustomer.simplename = txt_copsname.Text;
     newcustomer.country = txt_country.Text;
     newcustomer.website = txt_website.Text;
     newcustomer.companyaddress = txt_address.Text;
     newcustomer.city = txt_city.Text;
     newcustomer.customerdesc = txt_customerdesc.Text;
     newcustomer.email = txt_email.Text;
     newcustomer.accountname = txt_cw_accountname.Text;
     newcustomer.accountno = txt_cw_accountno.Text;
     newcustomer.invoiceaddress = txt_cw_address.Text;
     newcustomer.bank = txt_cw_bank.Text;
     newcustomer.taxcode = txt_cw_taxcode.Text;
     newcustomer.fax = txt_fax.Text;
     newcustomer.postcode = txt_postcode.Text;
     newcustomer.productinfo = txt_productinfo.Text;
     newcustomer.phone = txt_phone.Text;
     newcustomer.province = txt_province.Text;
     newcustomer.remarks = txt_remark.Text;
     newcustomer.customertype = cmb_customertype.SelectedText;
     newcustomer.companytype = cmb_companytype.SelectedText;
     newcustomer.profession = cmb_profession.SelectedText;
     var client = new CRMServiceClient();
     client.AddNewCustomer(newcustomer);
     saveAddress();
     saveContact();
     base.AddObject();
 }