dashboard
This commit is contained in:
@@ -19,6 +19,31 @@ namespace FCOMMON
|
||||
return cn;
|
||||
}
|
||||
|
||||
public static void GetPurchaseWaitCount(string gcode,out int cnt1,out int cnt2)
|
||||
{
|
||||
cnt1 = 0;
|
||||
cnt2 = 0;
|
||||
var cn = getCn();
|
||||
var sql1 = "select count(*) from Purchase where gcode = @gcode" +
|
||||
" and state like '--%'" +
|
||||
" and pdate >= @date";
|
||||
|
||||
var sql2 = "select count(*) from EETGW_PurchaseCR where gcode = @gcode" +
|
||||
" and state like '--%'" +
|
||||
" and pdate >= @date";
|
||||
|
||||
cn.Open();
|
||||
|
||||
var cmd = new System.Data.SqlClient.SqlCommand(sql1, cn);
|
||||
cmd.Parameters.Add("gcode", SqlDbType.VarChar).Value = gcode;
|
||||
cmd.Parameters.Add("date", SqlDbType.VarChar).Value = DateTime.Now.AddYears(-1).ToShortDateString();
|
||||
cnt1 = (int)cmd.ExecuteScalar();
|
||||
cmd.CommandText = sql2;
|
||||
cnt2 = (int)cmd.ExecuteScalar();
|
||||
cn.Dispose();
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static UserModel GetUserInfo(string uid)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user