Fix 生产进度双击报错
This commit is contained in:
parent
dff441d0a0
commit
ed8787f231
|
@ -168,7 +168,8 @@ public partial class Productout_browse : System.Web.UI.Page
|
|||
{
|
||||
DBHlper.excutecmd("update nr_z_cpck set zt='待确认' where id=" + id.Value);
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
Response.Write("<script>alert('出库冲红失败')</script>");
|
||||
}
|
||||
|
||||
|
@ -187,7 +188,8 @@ public partial class Productout_browse : System.Web.UI.Page
|
|||
|
||||
protected void btn_chuku_Click(object sender, EventArgs e)
|
||||
{
|
||||
DataTable dt = DBHlper.Execute(string.Format("select * from view_nr_z_cpkc where scdh='{0}' and xmmc='{1}' and khmc='{2}'", scdh.Text, cpbh.Text, khming.Text)).Tables[0];
|
||||
var result = DBHlper.Execute(string.Format("select * from view_nr_z_cpkc where scdh='{0}' and xmmc='{1}' and khmc='{2}'", scdh.Text, cpbh.Text, khming.Text));
|
||||
DataTable dt = result.Tables[0];
|
||||
if (dt.Rows.Count == 0)
|
||||
{
|
||||
Response.Write("<script>alert('库存不足')</script>");
|
||||
|
|
|
@ -72,7 +72,7 @@ public partial class Schedule_list : CommonPage
|
|||
|
||||
for (int i = 0; i < dt_paixu.Rows.Count; i++)
|
||||
{
|
||||
htmlcode += "<tr tag='" + dt_paixu.Rows[i]["id"] + "' >";
|
||||
htmlcode += "<tr tagData='" + dt_paixu.Rows[i]["id"] + "' >";
|
||||
htmlcode += " <td style='width:20px'><input type='checkbox' class='xz'/></td>";
|
||||
for (int j = 0; j < dt_paixu.Columns.Count - 1; j++)
|
||||
{
|
||||
|
@ -293,7 +293,8 @@ public partial class Schedule_list : CommonPage
|
|||
{
|
||||
cmd = string.Format("select CONVERT(varchar(12),riqi,111) as 'riqi' from view_nr_z_scjd where riqi>='{0}' and riqi<='{1}' ", yuechu, yuemo);
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
cmd = string.Format("select CONVERT(varchar(12),riqi,111) as 'riqi' from view_nr_z_scjd where riqi>='{0}' and riqi<='{1}' and zt='{2}' ", yuechu, yuemo, zt);
|
||||
}
|
||||
|
||||
|
@ -388,7 +389,8 @@ public partial class Schedule_list : CommonPage
|
|||
{
|
||||
selectcode = "select " + colmn + " from view_nr_z_scjd where zt='" + drp_zt.Text + "'";
|
||||
}
|
||||
else {
|
||||
else
|
||||
{
|
||||
selectcode = "select " + colmn + " from view_nr_z_scjd where 1=1 ";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue