APOC修复客户关联关系BUG,修复发票导入空行BUG
工作笔记
工作记录
📅 2025-07-30 16:52
👤 admin
if (this.gpCustomer.SelectedValue.ToString() != string.Empty && this.gpSD.SelectedValue.ToString() != string.Empty && this.gpCustomer.SelectedValue.ToString() != "-1" && this.gpSD.SelectedValue.ToString() != "-1")
{
if (((Enums.PageStatus)Session["Session_PageStatus"]) == SOI.Enums.PageStatus.Create || ((Enums.PageStatus)Session["Session_PageStatus"]) == SOI.Enums.PageStatus.Edit)
{
//if ((Enums.PageStatus)Session["Session_PageStatus"] == SOI.Enums.PageStatus.Create)
Wicresoft.Session.Session session = new Wicresoft.Session.Session();
string sql = @"select count(*) from SOI_DealerCustomer where isvalid=1 and FK_CustomerInfo=" + gpCustomer.SelectedValue + "and FK_Dealer=" + gpSD.SelectedValue + " and customerkind='客户'" + ((Enums.PageStatus)Session["Session_PageStatus"] == SOI.Enums.PageStatus.Create ? "" : (" AND PKID!= " + this.PKID));
int i = Convert.ToInt32(session.SqlHelper.ExecuteScalar(sql, CommandType.Text));
if (i > 0)
{
valiateSDDName.ErrorMessage = "经销商与医院已做过关联";
args.IsValid = false;
}
}
}
相关笔记