private void PrepareUpdate(V_S_UserGroup parameter)
 {
     this._selectedItem = parameter;
     _CodeList.Clear();
     _CodeList.Add(_selectedItem.GpCode);
     this.UpdateCodes(_selectedItem.IsSelected);
 }
示例#2
0
        protected override void GridListClick1(System.ServiceModel.DomainServices.Client.Entity parameter)
        {
            V_S_UserGroup _DC     = parameter as V_S_UserGroup;
            var           vmcode  = this.VMName.Replace("_List", "");
            var           funcode = vmcode.Substring(2);

            ComOpenWins.Open("", funcode);
            Messenger.Default.Send <string>((_DC.GpCode), vmcode + "_ShowFromList");
        }
示例#3
0
 protected override void OnLoadMainEnd2()
 {
     if (!string.IsNullOrEmpty(this.GpCode))
     {
         var item = new V_S_UserGroup()
         {
             GpCode = this.GpCode, GpName = this.GpName, GpID = this.GpID
         };
         this.GridSelectedItemChanged(item);
     }
 }
示例#4
0
 private void PrepareUpdate(V_S_UserGroup parameter)
 {
     if (string.IsNullOrEmpty(this.UserCode))
     {
         return;
     }
     this._selectedItem = parameter;
     uCodeList.Clear();
     uCodeList.Add(_selectedItem.GpCode);
     this.UpdateCodes(_selectedItem.IsSelected);
 }
示例#5
0
 public void InsertV_S_UserGroup(V_S_UserGroup v_S_UserGroup)
 {
     if ((v_S_UserGroup.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(v_S_UserGroup, EntityState.Added);
     }
     else
     {
         this.ObjectContext.V_S_UserGroup.AddObject(v_S_UserGroup);
     }
 }
示例#6
0
 public void DeleteV_S_UserGroup(V_S_UserGroup v_S_UserGroup)
 {
     if ((v_S_UserGroup.EntityState != EntityState.Detached))
     {
         this.ObjectContext.ObjectStateManager.ChangeObjectState(v_S_UserGroup, EntityState.Deleted);
     }
     else
     {
         this.ObjectContext.V_S_UserGroup.Attach(v_S_UserGroup);
         this.ObjectContext.V_S_UserGroup.DeleteObject(v_S_UserGroup);
     }
 }
示例#7
0
 public void UpdateV_S_UserGroup(V_S_UserGroup currentV_S_UserGroup)
 {
     this.ObjectContext.V_S_UserGroup.AttachAsModified(currentV_S_UserGroup, this.ChangeSet.GetOriginal(currentV_S_UserGroup));
 }