YL
2022-02-21 a905b3df0d0c9ae045b51d1299fbb2f2dcbc2e2d
WorkM/Á÷ת¿¨¹ÜÀí/Sc_ProcessExchangeBillQuery.cs
@@ -56,11 +56,11 @@
            //过滤条件
            if (frmCondition.SqlStr.Trim().Length == 0)
            {
                sSql = "Select * from " + ViewName + " Where 1=1 " + sWhere + sDlgWhere + " order by æ—¥æœŸ desc,hsubid  ";
                sSql = "Select * from " + ViewName + " Where 1=1 " + sWhere + sDlgWhere + " and HPRDORGID=" + DBUtility.ClsPub.HOrgID + " order by æ—¥æœŸ desc,hsubid  ";
            }
            else
            {
                sSql = frmCondition.SqlStr + sWhere + sDlgWhere + " order by æ—¥æœŸ desc,hsubid ";
                sSql = frmCondition.SqlStr + sWhere + sDlgWhere + " and HPRDORGID=" + DBUtility.ClsPub.HOrgID + " order by æ—¥æœŸ desc,hsubid ";
            }
            //
            DSet = SubCn.RunProcReturn(sSql, ViewName, ref DBUtility.ClsPub.sExeReturnInfo);
@@ -605,17 +605,22 @@
                Report.FieldByName("流转卡数量").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("流转卡数量")].Value);
                Report.FieldByName("产品代码").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("产品代码")].Value);
                Report.FieldByName("产品名称").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("产品名称")].Value);
                Report.FieldByName("产品规格").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("规格型号")].Value);
                Report.FieldByName("产品规格").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("产品规格")].Value);
                Report.FieldByName("计划开工日期").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("计划开工日期")].Value);
                Report.FieldByName("计划完工日期").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("计划完工日期")].Value);
                Report.FieldByName("订单跟踪号").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("订单跟踪号")].Value);
                Report.FieldByName("原料批次").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("原料批次")].Value);
                Report.FieldByName("模具设备").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("模具设备")].Value);
                Report.FieldByName("项目号").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("项目号")].Value);
                Report.FieldByName("图号版本").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("图号版本")].Value);
                Report.FieldByName("总装图号").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("总装图号")].Value);
                Report.FieldByName("材质").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("材质")].Value);
                Report.FieldByName("成品编号").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("成品编号")].Value);
                Report.FieldByName("版本").AsString = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[selectRow].Cells[Fun_GetCol("版本")].Value);
            }
            catch (Exception e)
            {
                MessageBox.Show("打印失败,[项目号],[流转卡编号],[流转卡数量],[产品代码],[产品名称],[产品规格],[计划开工日期],[计划完工日期],[订单跟踪号],[原料批次],[模具设备]." + e.Message);
                MessageBox.Show("打印失败,[项目号],[流转卡编号],[流转卡数量],[产品代码],[产品名称],[产品规格],[计划开工日期],[计划完工日期],[订单跟踪号],[原料批次],[模具设备],[图号版本],[总装图号],[材质],[成品编号],[版本]." + e.Message);
            }
        }
@@ -1163,6 +1168,10 @@
        private void cf_Click(object sender, EventArgs e)
        {
            //智见特别控制
            MessageBox.Show("单据拆分功能已控制,请与管理员联系", "提示");
            return;
            //
            Int64 lngBillKey = 0;
            if (grdMain.CurrentRow == null)
                return;