Beispiel #1
0
 public void UpdateSysCode(string scode,string source="SHIFT")
 {
     var ta = new Syscfg1TableAdapter { Connection = { ConnectionString = _constr } };
     ta.UpdateQuery(scode,source, Utils.Company);
 }
Beispiel #2
0
        public void CheckSysCode(string source)
        {            var ta = new Syscfg1TableAdapter { Connection = { ConnectionString = _constr } };

           var tt =  ta.CheckSourceAvailable(source);
            if (tt == 0)
            {
                ta.Insert(source, string.Empty,null, Utils.Company);
            }
        }
Beispiel #3
0
 public string GetSysCode(string scode)
 {
     var ta = new Syscfg1TableAdapter {Connection = {ConnectionString = _constr}};
     return (string) ta.GetShiftCode(scode, Utils.Company);
 }