dashboard

This commit is contained in:
backuppc
2025-07-10 17:40:31 +09:00
parent 26cb328f8f
commit ed0db28b1f
4 changed files with 189 additions and 5 deletions

View File

@@ -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)
{