chenhaozhe
2026-03-09 f9bfd801a3d62f02e0b714c19323fc4f3723ab79
WorkM/Á÷ת¿¨¹ÜÀí/Sc_ProcessExchangeBillList.cs
@@ -27,6 +27,7 @@
        public const string ModRightNameDelete = ModRightName + "_Delete";
        public const string ModRightNameMoney = ModRightName + "_Money";
        public const string ModRightNameQty = ModRightName + "_Qty";
        public const string ModRightNameCF = ModRightName + "_CF";
        DAL.ClsSc_ProcessExchangeBill oBill = new DAL.ClsSc_ProcessExchangeBill();
        public Sc_ProcessExchangeBill oFrm;
        public string sDlgWhere = "";  //外窗体递入
@@ -490,6 +491,8 @@
                //
                Sub_SetReport(oFrm.sOpenTmp);
                Report.Print(true);
                // å¼¹æ¡†å…³é—­åŽæ‰§è¡ŒæŸ¥è¯¢
                Sub_FastQuery();
            }
        }
@@ -506,6 +509,8 @@
                //
                Sub_SetReport(oFrm.sOpenTmp);
                Report.PrintPreview(true);
                // å¼¹æ¡†å…³é—­åŽæ‰§è¡ŒæŸ¥è¯¢
                Sub_FastQuery();
            }
        }
@@ -515,6 +520,17 @@
            //
            Report = new GridppReport();
            Report.LoadFromFile(DBUtility.ClsPub.AppPath + @"\" + sOpenTmp + ".grf");  //here .
            if (sOpenTmp=="工序流转卡小标签")
            {
                ClsCN SubCn = new ClsCN();
                DataSet DSet;
                string sSql = "";
                Int64 lngBillKey = DBUtility.ClsPub.isLong(grdMain.Rows[grdMain.CurrentRow.Index].Cells[Fun_GetCol("hmainid")].Value);
                sSql = "Select top 1 * from " + ViewName + " Where 1=1 and  hmainid =" + lngBillKey+ " and HPRDORGID=" + DBUtility.ClsPub.HOrgID + " order by å•据号 desc,hsubid  ";
                DSet = SubCn.RunProcReturn(sSql, ViewName, ref DBUtility.ClsPub.sExeReturnInfo);
                //绑定
                grdMain.DataSource = DSet.Tables[0].DefaultView;
            }
            Report.FetchRecord += new _IGridppReportEvents_FetchRecordEventHandler(ReportFetchRecordByDataTable);
        }
@@ -866,6 +882,12 @@
        private void cf_Click(object sender, EventArgs e)
        {
            //判断权限
            if (!DBUtility.ClsPub.Security_Log(ModRightNameCF, 1, true, DBUtility.ClsPub.CurUserName))
            {
                return;
            }
            Int64 lngBillKey = 0;
            if (grdMain.CurrentRow == null)
                return;