Пример #1
0
 public void SubmitForm(CustomerTransactionEntity customerEntity, string keyValue)
 {
     if (!string.IsNullOrEmpty(keyValue))
     {
         customerEntity.Modify(keyValue);
     }
     else
     {
         customerEntity.Create();
     }
     service.SubmitForm(customerEntity, keyValue);
 }
Пример #2
0
        public ActionResult SubmitForm(CustomerTransactionEntity customerEntity, string keyValue)
        {
            var loginInfo = OperatorProvider.Provider.GetCurrent();

            CustomerEntity entity = customerApp.GetForm(customerEntity.CustomerId);

            customerEntity.CustomerName = entity.Name;
            customerEntity.Telphone     = entity.Telphone;
            customerEntity.Address      = entity.Address;
            customerEntity.Salesman     = loginInfo.UserName;
            customerEntity.SalesmanCode = loginInfo.UserCode;
            customerEntity.Source       = entity.SourceName;
            customerTranApp.SubmitForm(customerEntity, keyValue);
            return(Success("操作成功。"));
        }