Ejemplo n.º 1
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     deskResult.LastOperationTime   = StaticStr.dateTime;
     deskResult.LastOperationUserId = App.CertificationUser.Id;
     if (new ClientServicesProxy().Update(deskResult) > 0)
     {
         if (Frm_Main.RefreshsAction.IsNotNull())
         {
             this.Close();
             Frm_Main.RefreshsAction();
         }
     }
     else
     {
         Msg.ShowOkMsg("保存失败");
     }
 }
Ejemplo n.º 2
0
 private void but_OK_Click(object sender, EventArgs e)
 {
     try
     {
         Orders order = new Orders();
         order.Id                  = App.GetGuid;
         order.ShopId              = App.CertificationUser.ShopId;
         order.CreateTime          = App.GetDateTime;
         order.LastOperationTime   = order.CreateTime;
         order.CreateUserId        = App.CertificationUser.Id;
         order.LastOperationUserId = order.CreateUserId;
         order.MemberId            = txtMemberId.Text;
         order.DeskId              = deskResult.Id;
         order.TypeId              = deskTypeResult.Id;
         order.Status              = StatusEnum.True.ToString();
         order.Remarks             = txtRemarks.Text;
         order.CustomerName        = txtCustomerName.Text;
         order.TelePhone           = txtTelePhone.Text;
         order.CustomerNumber      = txtCustomersNumber.Text.ToInt();
         order.FlowStatus          = StatusEnum.Using.ToString();
         if (new ClientServicesProxy().Add(order) > 0)
         {
             if (Frm_Main.RefreshsAction.IsNotNull())
             { //scope.Complete();
                 this.Close();
                 Frm_Main.RefreshsAction();
             }
         }
         else
         {
             Msg.ShowOkMsg("保存失败");
         }
     }
     catch (Exception ex)
     {
         Msg.ShowErrorMsg(ex);
     }
 }