Exemplo n.º 1
0
        public static sec_User ChkUserPwd(string AthUser, string Pwd)
        {
            DisplayMeter_DBDataContext dc = new DisplayMeter_DBDataContext();

            return((from usr in dc.GetTable <sec_User>()
                    where (usr.UserName == AthUser) && (usr.Passwd == Pwd)
                    select usr).SingleOrDefault <sec_User>());
        }
Exemplo n.º 2
0
        public static sec_User ChkUserPwd(string AthUser, string Pwd)
        {
            DisplayMeter_DBDataContext dc = new DisplayMeter_DBDataContext();

            return (from usr in dc.GetTable<sec_User>()
                    where (usr.UserName == AthUser) && (usr.Passwd == Pwd)
                    select usr).SingleOrDefault<sec_User>();
        }
Exemplo n.º 3
0
        public static List <stp_get_LastMeter_ByUniqResult> getDetailList(Guid LackUniq)
        {
            DisplayMeter_DBDataContext dc = new DisplayMeter_DBDataContext();

            return(dc.stp_get_LastMeter_ByUniq(LackUniq).ToList <stp_get_LastMeter_ByUniqResult>());
        }
Exemplo n.º 4
0
        public static List <stp_get_LastMeterResult> getLastMaster()
        {
            DisplayMeter_DBDataContext dc = new DisplayMeter_DBDataContext();

            return(dc.stp_get_LastMeter().ToList <stp_get_LastMeterResult>());
        }
Exemplo n.º 5
0
 public static List<stp_get_LastMeterResult> getLastMaster()
 {
     DisplayMeter_DBDataContext dc = new DisplayMeter_DBDataContext();
     return dc.stp_get_LastMeter().ToList<stp_get_LastMeterResult>();
 }
Exemplo n.º 6
0
 public static List<stp_get_LastMeter_ByUniqResult> getDetailList(Guid LackUniq)
 {
     DisplayMeter_DBDataContext dc = new DisplayMeter_DBDataContext();
     return dc.stp_get_LastMeter_ByUniq(LackUniq).ToList<stp_get_LastMeter_ByUniqResult>();
 }