示例#1
0
        //override
        public static T_Menu AddT_Menu(string menu_name, string menu_url, bool status, int parent_menu_id)
        {
            Models.T_Menu t_Menu = new Models.T_Menu();

            TransData_AddT_Menu(menu_name, menu_url, status, parent_menu_id, t_Menu);

            return(T_MenuService.AddT_Menu(t_Menu));
        }
示例#2
0
        //overload
        public static void ModifyT_Menu(int Id, string menu_name, string menu_url, bool status, int parent_menu_id)
        {
            Models.T_Menu t_Menu = new Models.T_Menu();
            //PK
            t_Menu.Id = Id;
            TransData_ModifyT_Menu(Id, menu_name, menu_url, status, parent_menu_id, t_Menu);

            T_MenuService.ModifyT_Menu(t_Menu);
        }
示例#3
0
 //Trans Add Method
 private static void TransData_AddT_Menu(string menu_name, string menu_url, bool status, int parent_menu_id, Models.T_Menu t_Menu)
 {
     try{ if (menu_name.ToString() == "0001-1-1 0:00:00")
          {
              t_Menu.Menu_name = null;
          }
          else
          {
              t_Menu.Menu_name = menu_name;
          } }catch {}
     try{ if (menu_url.ToString() == "0001-1-1 0:00:00")
          {
              t_Menu.Menu_url = null;
          }
          else
          {
              t_Menu.Menu_url = menu_url;
          } }catch {}
     try{ if (status.ToString() == "0001-1-1 0:00:00")
          {
              t_Menu.Status = null;
          }
          else
          {
              t_Menu.Status = status;
          } }catch {}
     try{ if (parent_menu_id.ToString() == "0001-1-1 0:00:00")
          {
              t_Menu.Parent_menu_id = null;
          }
          else
          {
              t_Menu.Parent_menu_id = parent_menu_id;
          } }catch {}
 }