This commit is contained in:
chi
2022-05-20 22:04:42 +09:00
parent 5e67caad39
commit 4b378f728e
4 changed files with 43 additions and 4 deletions

View File

@@ -226,7 +226,25 @@ namespace FCOMMON
return datacnt == 1;
}
public static bool DelMagamList(string mon)
{
var gcode = FCOMMON.info.Login.gcode;
//해당기간내의 마감 자료를 조회해서 넣는다.
var cn = getCn();
cn.Open();
var retval = new List<string>();
string sql = "delete from EETGW_Magam where gcode=@gcode and pdate = @pdate";
var cmd = new SqlCommand(sql, cn);
cmd.Parameters.Add("gcode", System.Data.SqlDbType.VarChar).Value = gcode;
cmd.Parameters.Add("pdate", System.Data.SqlDbType.VarChar).Value = mon;
var datacnt = int.Parse(cmd.ExecuteNonQuery().ToString());
cn.Close();
cn.Dispose();
return datacnt == 1;
}
public static List<string> GetMagamList()
{
var gcode = FCOMMON.info.Login.gcode;