コード例 #1
0
ファイル: Customer_info.aspx.cs プロジェクト: chenxun/ecrm
        private void BuildCustomer()
        {
            string str_id = GetQueryString("id");

            if (str_id == null)
            {
                return;
            }
            TdCustomerResult res = customerService.GetCustomerById(int.Parse(str_id));

            if (!res.result)
            {
                AddLoadMessage(res.msg);
                return;
            }
            the_customer = res.customer;
        }
コード例 #2
0
ファイル: Customer_info.aspx.cs プロジェクト: chenxun/ecrm
        /// <summary>
        /// 保存客户的基本信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Button_saveCustomer_Click(object sender, System.EventArgs e)
        {
            TdCustomerRequest request = CustomerInfo_edit.getCustomerInfo();
            TdCustomerResult  res     = customerService.SaveCustomer(request);

            //CustomerDO customerNew = CustomerInfo_edit.getCustomerInfo();
            ////dr[CustomersData.COMPANYNAME_FIELDS] = customerNew.CompanyName;
            //dr[CustomersData.WEBSITE_FIELDS] = customerNew.Website;
            //dr[CustomersData.CONTACTMAN_FIELDS] = customerNew.ContactMan;
            //dr[CustomersData.TEL_FIELDS] = customerNew.Tel;
            //dr[CustomersData.EXTENSION_FIELDS] = customerNew.Extension;
            //dr[CustomersData.POSITION_FIELDS] = customerNew.Position;
            //dr[CustomersData.MOBILE_FIELDS] = customerNew.Mobile;
            //dr[CustomersData.FAX_FIELDS] = customerNew.Fax;
            //dr[CustomersData.EMAIL_FIELDS] = customerNew.Email;
            //dr[CustomersData.INDUSTRYTYPE_FIELDS] = customerNew.IndustryType;
            //dr[CustomersData.BUYINTENT_FIELDS] = customerNew.BuyIntent;
            //dr[CustomersData.VISITTYPE_FIELDS] = customerNew.VisitType;
            //dr[CustomersData.RANKID_FIELDS] = customerNew.RankId;
            //dr[CustomersData.AREA_FIELDS] = customerNew.Area;
            //dr[CustomersData.VILLAGE_FIELDS] = customerNew.Village;
            //dr[CustomersData.ADDRESS_FIELDS] = customerNew.Address;
            //dr[CustomersData.REMARK_FIELDS] = customerNew.Remark;
            //dr[CustomersData.KEYWORDS_FIELDS] = customerNew.Keywords;

            //dataCommon.UpdateData(ds);

            //customerService.AddChangeHistory(CustomerInfo_edit.ChangeHistory);
            //HistoryDataBind();
            if (res.result)
            {
                AddLoadMessage("客户信息被成功保存");
            }
            else
            {
                AddLoadMessage(res.msg);
            }
        }