示例#1
0
 public static string GetUri()
 {
     var cmd = new SqlCommand("select top 1 cValue from BSetting where cName=@cName");
     cmd.Parameters.AddWithValue("@cName", "WYI");
     var wf = new WmsFunction(BaseStructure.WmsCon);
     UriString=wf.ReturnFirstSingle(cmd);
     return UriString;
 }
示例#2
0
 public static string GetBoxWeight(string cBoxNumber)
 {
     using (var cmd = new SqlCommand(@"select isnull(iWeight,0) from SS_Box where cBoxNumber=@cBoxNumber"))
     {
         cmd.Parameters.AddWithValue("@cBoxNumber", cBoxNumber);
         var wf = new WmsFunction(BaseStructure.WmsCon);
         return(wf.ReturnFirstSingle(cmd));
     }
 }
示例#3
0
 public static string GetPrintLog(string cGuid)
 {
     using (var cmd = new SqlCommand(@"select dAddTime from BLogPrint WHERE cGuid=@cGuid"))
     {
         cmd.Parameters.AddWithValue("@cGuid", cGuid);
         var wf = new WmsFunction(BaseStructure.WmsCon);
         return(wf.ReturnFirstSingle(cmd));
     }
 }
示例#4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="cKey"></param>
 /// <returns></returns>
 public static string GetMenuClass(string cKey)
 {
     using (var cmd = new SqlCommand(@"select cClass from BFunction WHERE cFunction=@cFunction"))
     {
         cmd.Parameters.AddWithValue("@cFunction", cKey);
         var wf = new WmsFunction(BaseStructure.WmsCon);
         return(wf.ReturnFirstSingle(cmd));
     }
 }
示例#5
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="cKey"></param>
 /// <returns></returns>
 public static string GetMenuClass(string cKey)
 {
     using (var cmd = new SqlCommand(@"select cClass from BFunction WHERE cFunction=@cFunction"))
     {
         cmd.Parameters.AddWithValue("@cFunction", cKey);
         var wf = new WmsFunction(BaseStructure.WmsCon);
         return wf.ReturnFirstSingle(cmd);
     }
 }
示例#6
0
 public static string GetBarCodeBySerialNumber(string cSerialNumber)
 {
     using (var logCmd = new SqlCommand(@"GetBarCodeBySerialNumber"))
     {
         logCmd.CommandType = CommandType.StoredProcedure;
         logCmd.Parameters.AddWithValue("@cSerialNumber", cSerialNumber);
         var wf = new WmsFunction(BaseStructure.WmsCon);
         return(wf.ReturnFirstSingle(logCmd));
     }
 }
示例#7
0
        public static string GetUri()
        {
            var cmd = new SqlCommand("select top 1 cValue from BSetting where cName=@cName");

            cmd.Parameters.AddWithValue("@cName", "WYI");
            var wf = new WmsFunction(BaseStructure.WmsCon);

            UriString = wf.ReturnFirstSingle(cmd);
            return(UriString);
        }