示例#1
0
        //选择发生改变事件
        void DtGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            DataGrid grid = sender as DataGrid;

            if (grid.SelectedItem != null)
            {
                SelectUser = grid.SelectedItems[0] as T_SYS_USERACTLOG;
            }
        }
示例#2
0
 //添加OR修改初始化
 private void InitParas(string menuID)
 {
     ServiceClient = new UseractLogServiceClient();
     ServiceClient.AddUseractLogCompleted        += new EventHandler <AddUseractLogCompletedEventArgs>(ServiceClient_AddUseractLogCompleted);
     ServiceClient.UpdateUseractLogCompleted     += new EventHandler <UpdateUseractLogCompletedEventArgs>(ServiceClient_UpdateUseractLogCompleted);
     ServiceClient.GetSysUseractLogByIDCompleted += new EventHandler <GetSysUseractLogByIDCompletedEventArgs>(ServiceClient_GetSysUseractLogByIDCompleted);
     if (FormType == FormTypes.New)
     {
         SysMenu       = new T_SYS_USERACTLOG();
         SysMenu.LOGID = Guid.NewGuid().ToString();
     }
     if (!string.IsNullOrEmpty(menuID))
     {
         ServiceClient.GetSysUseractLogByIDAsync(menuID);
     }
 }
示例#3
0
 public bool DeleteUseractLog(T_SYS_USERACTLOG entity)
 {
     return Useract.DeleteUseractLog(entity);
 }
示例#4
0
 public bool UpdateUseractLog(T_SYS_USERACTLOG entity)
 {
     return Useract.UpdateUseractLog(entity);
 }
示例#5
0
 public bool AddUseractLog(T_SYS_USERACTLOG entity)
 {
     return Useract.InsertUseractLog(entity);
 }
示例#6
0
 public static T_SYS_USERACTLOG CreateT_SYS_USERACTLOG(string lOGID)
 {
     T_SYS_USERACTLOG t_SYS_USERACTLOG = new T_SYS_USERACTLOG();
     t_SYS_USERACTLOG.LOGID = lOGID;
     return t_SYS_USERACTLOG;
 }
示例#7
0
 public void AddToT_SYS_USERACTLOG(T_SYS_USERACTLOG t_SYS_USERACTLOG)
 {
     base.AddObject("T_SYS_USERACTLOG", t_SYS_USERACTLOG);
 }
示例#8
0
        private void DtGrid_LoadingRow(object sender, DataGridRowEventArgs e)
        {
            T_SYS_USERACTLOG UserT = (T_SYS_USERACTLOG)e.Row.DataContext;

            SetRowLogo(DtGrid, e.Row, "T_SYS_USERACTLOG");
        }
示例#9
0
 public bool DeleteUseractLog(T_SYS_USERACTLOG entity)
 {
     return(Useract.DeleteUseractLog(entity));
 }
示例#10
0
 public bool UpdateUseractLog(T_SYS_USERACTLOG entity)
 {
     return(Useract.UpdateUseractLog(entity));
 }
示例#11
0
 public bool AddUseractLog(T_SYS_USERACTLOG entity)
 {
     return(Useract.InsertUseractLog(entity));
 }
示例#12
0
        //添加OR修改初始化
        private void InitParas(string menuID)
        {

            ServiceClient = new UseractLogServiceClient();
            ServiceClient.AddUseractLogCompleted += new EventHandler<AddUseractLogCompletedEventArgs>(ServiceClient_AddUseractLogCompleted);
            ServiceClient.UpdateUseractLogCompleted += new EventHandler<UpdateUseractLogCompletedEventArgs>(ServiceClient_UpdateUseractLogCompleted);
            ServiceClient.GetSysUseractLogByIDCompleted += new EventHandler<GetSysUseractLogByIDCompletedEventArgs>(ServiceClient_GetSysUseractLogByIDCompleted);
            if (FormType == FormTypes.New)
            {
                SysMenu = new T_SYS_USERACTLOG();
                SysMenu.LOGID = Guid.NewGuid().ToString();
            }
            if (!string.IsNullOrEmpty(menuID))
            {
                ServiceClient.GetSysUseractLogByIDAsync(menuID);
            }

        }