王 垚
2022-04-06 9167264eeb081fdbb94d8a1d2f76f35a6ccdd5fe
WarM/²Ö¿â¹ÜÀí/Kf_MoveStockRequestBillList.cs
@@ -933,8 +933,31 @@
            sDlgWhere = "";
        }
        private void label1_Click(object sender, EventArgs e)
        {
        }
        private void btnTB_Click(object sender, EventArgs e)
        {
            SQLHelper.ClsCN oCn = new SQLHelper.ClsCN();
            DataSet DS = oCn.RunProcReturn("exec h_p_WMS_ERPSourceBillToLocal '" + txtHBillNo2.Text.Trim() + "','" + ModName + "'", "h_p_WMS_ERPSourceBillToLocal");
            if (DS == null)
            {
                MessageBox.Show("同步单据失败!");
            }
            else
            {
                if (DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HBack"]) == "2")
                {
                    MessageBox.Show(DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HBackRemark"]));
                }
                else
                {
                    MessageBox.Show("同步单据成功!");
                    Display();
                }
            }
        }
    }
}