Example #1
0
 /// <summary>
 /// 补填个人用户信息
 /// </summary>
 public bool AddPurchaseIndividualInfo(PurchaseIndividualInfo info)
 {
     try
     {
         AccountCombineService.AddPurchaseInfo(this.CurrentCompany.CompanyId, info, this.CurrentUser.UserName);
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
 protected void btnSubmit_Click(object sender, EventArgs e)
 {
     if (valiateCompnayInfo())
     {
         try
         {
             if (this.CurrentCompany.AccountType == AccountBaseType.Individual)
             {
                 AccountCombineService.AddPurchaseInfo(this.CurrentCompany.CompanyId, getIndividualInfo(), this.CurrentUser.UserName);
             }
             else
             {
                 AccountCombineService.AddPurchaseInfo(this.CurrentCompany.CompanyId, getEnterpriseInfo(), this.CurrentUser.UserName);
             }
             ShowMessage("修改成功");
         }
         catch (Exception ex)
         {
             ShowExceptionMessage(ex, "保存公司信息");
         }
     }
 }