智云外网版WMS\MES\SCM(作废)
ch
2022-07-19 7e4ee2b0f6caefa200854a4b54c6d011c16fb64a
新增了AGV配送单列表
4个文件已添加
4个文件已修改
5900 ■■■■■ 已修改文件
BaseSet/BaseSet.csproj 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
NETSCM.zip 补丁 | 查看 | 原始文档 | blame | 历史
NETSCM/ClsShowMod.cs 255 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SCM/SCM.csproj 12 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SCM/公用类/ClsPub1.cs 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SCM/条码打印/Kf_AGVRequestBill_FastList.cs 863 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SCM/条码打印/Kf_AGVRequestBill_FastList.designer.cs 596 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
SCM/条码打印/Kf_AGVRequestBill_FastList.resx 4157 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
BaseSet/BaseSet.csproj
@@ -54,9 +54,12 @@
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="AxInterop.grdes6Lib">
      <HintPath>..\DLL\AxInterop.grdes6Lib.dll</HintPath>
    </Reference>
    <Reference Include="AxInterop.gregn6Lib, Version=6.0.0.0, Culture=neutral, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\SCM\bin\x86\Debug\AxInterop.gregn6Lib.dll</HintPath>
      <HintPath>..\DLL\AxInterop.gregn6Lib.dll</HintPath>
    </Reference>
    <Reference Include="BLL, Version=1.0.0.0, Culture=neutral, processorArchitecture=x86">
      <SpecificVersion>False</SpecificVersion>
@@ -66,9 +69,13 @@
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\DLL\DBUtility.dll</HintPath>
    </Reference>
    <Reference Include="Interop.grdes6Lib">
      <HintPath>..\DLL\Interop.grdes6Lib.dll</HintPath>
      <EmbedInteropTypes>True</EmbedInteropTypes>
    </Reference>
    <Reference Include="Interop.gregn6Lib, Version=6.0.0.0, Culture=neutral, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\SCM\bin\x86\Debug\Interop.gregn6Lib.dll</HintPath>
      <HintPath>..\DLL\Interop.gregn6Lib.dll</HintPath>
    </Reference>
    <Reference Include="Pub_Class, Version=1.0.0.0, Culture=neutral, processorArchitecture=x86">
      <SpecificVersion>False</SpecificVersion>
NETSCM.zip
Binary files differ
NETSCM/ClsShowMod.cs
@@ -4087,132 +4087,139 @@
                        oKf_OtherOutBillList.Show();
                        oMainForm.AddTabPage(oKf_OtherOutBillList);
                        break;
        //            case "kf_otheroutbill":
        //                //
        //                Kf_OtherOutBill oKf_OtherOutBill = new Kf_OtherOutBill();
        //                oKf_OtherOutBill.ShowDialog();
        //                break;
        //            case "kf_movestockbilllist":
        //                //权限
        //                Kf_MoveStockBillList oKf_MoveStockBillList = new Kf_MoveStockBillList();
        //                oKf_MoveStockBillList.MdiParent = oMain;
        //                oKf_MoveStockBillList.Show();
        //                oMainForm.AddTabPage(oKf_MoveStockBillList);
        //                break;
        //            case "kf_movestockbill":
        //                //
        //                Kf_MoveStockBill oKf_MoveStockBill = new Kf_MoveStockBill();
        //                oKf_MoveStockBill.ShowDialog();
        //                break;
        //            case "kf_checkstockbilllist":
        //                //权限
        //                Kf_CheckStockBillList oKf_CheckStockBillList = new Kf_CheckStockBillList();
        //                oKf_CheckStockBillList.MdiParent = oMain;
        //                oKf_CheckStockBillList.Show();
        //                oMainForm.AddTabPage(oKf_CheckStockBillList);
        //                break;
        //            case "kf_checkstockbill":
        //                //
        //                Kf_CheckStockBill oKf_CheckStockBill = new Kf_CheckStockBill();
        //                oKf_CheckStockBill.ShowDialog();
        //                break;
                    //            case "kf_otheroutbill":
                    //                //
                    //                Kf_OtherOutBill oKf_OtherOutBill = new Kf_OtherOutBill();
                    //                oKf_OtherOutBill.ShowDialog();
                    //                break;
                    //            case "kf_movestockbilllist":
                    //                //权限
                    //                Kf_MoveStockBillList oKf_MoveStockBillList = new Kf_MoveStockBillList();
                    //                oKf_MoveStockBillList.MdiParent = oMain;
                    //                oKf_MoveStockBillList.Show();
                    //                oMainForm.AddTabPage(oKf_MoveStockBillList);
                    //                break;
                    //            case "kf_movestockbill":
                    //                //
                    //                Kf_MoveStockBill oKf_MoveStockBill = new Kf_MoveStockBill();
                    //                oKf_MoveStockBill.ShowDialog();
                    //                break;
                    //            case "kf_checkstockbilllist":
                    //                //权限
                    //                Kf_CheckStockBillList oKf_CheckStockBillList = new Kf_CheckStockBillList();
                    //                oKf_CheckStockBillList.MdiParent = oMain;
                    //                oKf_CheckStockBillList.Show();
                    //                oMainForm.AddTabPage(oKf_CheckStockBillList);
                    //                break;
                    //            case "kf_checkstockbill":
                    //                //
                    //                Kf_CheckStockBill oKf_CheckStockBill = new Kf_CheckStockBill();
                    //                oKf_CheckStockBill.ShowDialog();
                    //                break;
        //            case "kf_entrustcheckstockbilllist":
        //                //权限
        //                Kf_EntrustCheckStockBillList oKf_EntrustCheckStockBillList = new Kf_EntrustCheckStockBillList();
        //                oKf_EntrustCheckStockBillList.MdiParent = oMain;
        //                oKf_EntrustCheckStockBillList.Show();
        //                oMainForm.AddTabPage(oKf_EntrustCheckStockBillList);
        //                break;
        //            case "kf_entrustcheckstockbill":
        //                //
        //                Kf_EntrustCheckStockBill oKf_EntrustCheckStockBill = new Kf_EntrustCheckStockBill();
        //                oKf_EntrustCheckStockBill.ShowDialog();
        //                break;
                    //            case "kf_entrustcheckstockbilllist":
                    //                //权限
                    //                Kf_EntrustCheckStockBillList oKf_EntrustCheckStockBillList = new Kf_EntrustCheckStockBillList();
                    //                oKf_EntrustCheckStockBillList.MdiParent = oMain;
                    //                oKf_EntrustCheckStockBillList.Show();
                    //                oMainForm.AddTabPage(oKf_EntrustCheckStockBillList);
                    //                break;
                    //            case "kf_entrustcheckstockbill":
                    //                //
                    //                Kf_EntrustCheckStockBill oKf_EntrustCheckStockBill = new Kf_EntrustCheckStockBill();
                    //                oKf_EntrustCheckStockBill.ShowDialog();
                    //                break;
        //            case "kf_mateoutrequestbilllist":
        //                //权限
        //                Kf_MateOutRequestBillList oKf_MateOutRequestBillList = new Kf_MateOutRequestBillList();
        //                oKf_MateOutRequestBillList.MdiParent = oMain;
        //                oKf_MateOutRequestBillList.Show();
        //                oMainForm.AddTabPage(oKf_MateOutRequestBillList);
        //                break;
        //            case "kf_mateoutrequestbill":
        //                //
        //                Kf_MateOutRequestBill oKf_MateOutRequestBill = new Kf_MateOutRequestBill();
        //                oKf_MateOutRequestBill.ShowDialog();
        //                break;
        //            //===================================报表分析
        //            case "sc_queryreadyrptnoinstockreport":
        //                //权限
        //                WarM.Sc_QueryReadyRptNoInStockReport oSc_QueryReadyRptNoInStockReport = new WarM.Sc_QueryReadyRptNoInStockReport();
        //                oSc_QueryReadyRptNoInStockReport.MdiParent = oMain;
        //                oSc_QueryReadyRptNoInStockReport.Show();
        //                oMainForm.AddTabPage(oSc_QueryReadyRptNoInStockReport);
        //                break;
        //            case "kf_barcodeoutinreport":
        //                //权限
        //                WarM.Kf_BarCodeOutInReport oKf_BarCodeOutInReport = new WarM.Kf_BarCodeOutInReport();
        //                oKf_BarCodeOutInReport.MdiParent = oMain;
        //                oKf_BarCodeOutInReport.Show();
        //                oMainForm.AddTabPage(oKf_BarCodeOutInReport);
        //                break;
        //            case "kf_icinventory_barcode":
        //                //权限
        //                WarM.Kf_ICInventory_BarCode oKf_ICInventory_BarCode = new WarM.Kf_ICInventory_BarCode();
        //                oKf_ICInventory_BarCode.MdiParent = oMain;
        //                oKf_ICInventory_BarCode.Show();
        //                oMainForm.AddTabPage(oKf_ICInventory_BarCode);
        //                break;
        //            case "kf_icinventorylist":
        //                //权限
        //                WarM.KF_ICInventoryList oKF_ICInventoryList = new WarM.KF_ICInventoryList();
        //                oKF_ICInventoryList.MdiParent = oMain;
        //                oKF_ICInventoryList.Show();
        //                oMainForm.AddTabPage(oKF_ICInventoryList);
        //                break;
        //            case "kf_mateoutinbookreport":
        //                //权限
        //                Kf_MateOutInBookReport oKf_MateOutInBookReport = new Kf_MateOutInBookReport();
        //                oKf_MateOutInBookReport.MdiParent = oMain;
        //                oKf_MateOutInBookReport.Show();
        //                oMainForm.AddTabPage(oKf_MateOutInBookReport);
        //                break;
        //            case "kf_mateoutsumreport":
        //                //权限
        //                Kf_MateOutSumReport oKf_MateOutSumReport = new Kf_MateOutSumReport();
        //                oKf_MateOutSumReport.MdiParent = oMain;
        //                oKf_MateOutSumReport.Show();
        //                oMainForm.AddTabPage(oKf_MateOutSumReport);
        //                break;
        //            case "kf_matestockaccount":
        //                //权限
        //                Kf_MateStockAccount oKf_MateStockAccount = new Kf_MateStockAccount();
        //                oKf_MateStockAccount.MdiParent = oMain;
        //                oKf_MateStockAccount.Show();
        //                oMainForm.AddTabPage(oKf_MateStockAccount);
        //                break;
        //            case "kf_pstockinoutreport":
        //                //权限
        //                Kf_PStockInOutReport oKf_PStockInOutReport = new Kf_PStockInOutReport();
        //                oKf_PStockInOutReport.MdiParent = oMain;
        //                oKf_PStockInOutReport.Show();
        //                oMainForm.AddTabPage(oKf_PStockInOutReport);
        //                break;
        //            case "kf_pstockinoutsumreport":
        //                //权限
        //                Kf_PStockInOutSumReport oKf_PStockInOutSumReport = new Kf_PStockInOutSumReport();
        //                oKf_PStockInOutSumReport.MdiParent = oMain;
        //                oKf_PStockInOutSumReport.Show();
        //                oMainForm.AddTabPage(oKf_PStockInOutSumReport);
        //                break;
        //            case "kf_safestockreport":
        //                //权限
        //                Kf_SafeStockReport oKf_SafeStockReport = new Kf_SafeStockReport();
        //                oKf_SafeStockReport.MdiParent = oMain;
        //                oKf_SafeStockReport.Show();
        //                oMainForm.AddTabPage(oKf_SafeStockReport);
        //                break;
                    //            case "kf_mateoutrequestbilllist":
                    //                //权限
                    //                Kf_MateOutRequestBillList oKf_MateOutRequestBillList = new Kf_MateOutRequestBillList();
                    //                oKf_MateOutRequestBillList.MdiParent = oMain;
                    //                oKf_MateOutRequestBillList.Show();
                    //                oMainForm.AddTabPage(oKf_MateOutRequestBillList);
                    //                break;
                    //            case "kf_mateoutrequestbill":
                    //                //
                    //                Kf_MateOutRequestBill oKf_MateOutRequestBill = new Kf_MateOutRequestBill();
                    //                oKf_MateOutRequestBill.ShowDialog();
                    //                break;
                    //            //===================================报表分析
                    //            case "sc_queryreadyrptnoinstockreport":
                    //                //权限
                    //                WarM.Sc_QueryReadyRptNoInStockReport oSc_QueryReadyRptNoInStockReport = new WarM.Sc_QueryReadyRptNoInStockReport();
                    //                oSc_QueryReadyRptNoInStockReport.MdiParent = oMain;
                    //                oSc_QueryReadyRptNoInStockReport.Show();
                    //                oMainForm.AddTabPage(oSc_QueryReadyRptNoInStockReport);
                    //                break;
                    //            case "kf_barcodeoutinreport":
                    //                //权限
                    //                WarM.Kf_BarCodeOutInReport oKf_BarCodeOutInReport = new WarM.Kf_BarCodeOutInReport();
                    //                oKf_BarCodeOutInReport.MdiParent = oMain;
                    //                oKf_BarCodeOutInReport.Show();
                    //                oMainForm.AddTabPage(oKf_BarCodeOutInReport);
                    //                break;
                    //            case "kf_icinventory_barcode":
                    //                //权限
                    //                WarM.Kf_ICInventory_BarCode oKf_ICInventory_BarCode = new WarM.Kf_ICInventory_BarCode();
                    //                oKf_ICInventory_BarCode.MdiParent = oMain;
                    //                oKf_ICInventory_BarCode.Show();
                    //                oMainForm.AddTabPage(oKf_ICInventory_BarCode);
                    //                break;
                    //            case "kf_icinventorylist":
                    //                //权限
                    //                WarM.KF_ICInventoryList oKF_ICInventoryList = new WarM.KF_ICInventoryList();
                    //                oKF_ICInventoryList.MdiParent = oMain;
                    //                oKF_ICInventoryList.Show();
                    //                oMainForm.AddTabPage(oKF_ICInventoryList);
                    //                break;
                    //            case "kf_mateoutinbookreport":
                    //                //权限
                    //                Kf_MateOutInBookReport oKf_MateOutInBookReport = new Kf_MateOutInBookReport();
                    //                oKf_MateOutInBookReport.MdiParent = oMain;
                    //                oKf_MateOutInBookReport.Show();
                    //                oMainForm.AddTabPage(oKf_MateOutInBookReport);
                    //                break;
                    //            case "kf_mateoutsumreport":
                    //                //权限
                    //                Kf_MateOutSumReport oKf_MateOutSumReport = new Kf_MateOutSumReport();
                    //                oKf_MateOutSumReport.MdiParent = oMain;
                    //                oKf_MateOutSumReport.Show();
                    //                oMainForm.AddTabPage(oKf_MateOutSumReport);
                    //                break;
                    //            case "kf_matestockaccount":
                    //                //权限
                    //                Kf_MateStockAccount oKf_MateStockAccount = new Kf_MateStockAccount();
                    //                oKf_MateStockAccount.MdiParent = oMain;
                    //                oKf_MateStockAccount.Show();
                    //                oMainForm.AddTabPage(oKf_MateStockAccount);
                    //                break;
                    //            case "kf_pstockinoutreport":
                    //                //权限
                    //                Kf_PStockInOutReport oKf_PStockInOutReport = new Kf_PStockInOutReport();
                    //                oKf_PStockInOutReport.MdiParent = oMain;
                    //                oKf_PStockInOutReport.Show();
                    //                oMainForm.AddTabPage(oKf_PStockInOutReport);
                    //                break;
                    //            case "kf_pstockinoutsumreport":
                    //                //权限
                    //                Kf_PStockInOutSumReport oKf_PStockInOutSumReport = new Kf_PStockInOutSumReport();
                    //                oKf_PStockInOutSumReport.MdiParent = oMain;
                    //                oKf_PStockInOutSumReport.Show();
                    //                oMainForm.AddTabPage(oKf_PStockInOutSumReport);
                    //                break;
                    //            case "kf_safestockreport":
                    //                //权限
                    //                Kf_SafeStockReport oKf_SafeStockReport = new Kf_SafeStockReport();
                    //                oKf_SafeStockReport.MdiParent = oMain;
                    //                oKf_SafeStockReport.Show();
                    //                oMainForm.AddTabPage(oKf_SafeStockReport);
                    //                break;
                    case "kf_agvrequestbill_fastlist":
                        Kf_AGVRequestBill_FastList oKf_AGVRequestBill_FastList = new Kf_AGVRequestBill_FastList();
                        oKf_AGVRequestBill_FastList.MdiParent = oMain;
                        oKf_AGVRequestBill_FastList.ModCaption = gnmc;
                        oKf_AGVRequestBill_FastList.Show();
                        oMainForm.AddTabPage(oKf_AGVRequestBill_FastList);
                        break;
                    default:
                        break;
                }
SCM/SCM.csproj
@@ -76,7 +76,7 @@
    </Reference>
    <Reference Include="Interop.Excel, Version=1.5.0.0, Culture=neutral, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
      <HintPath>..\..\..\..\盛威国际\盛威源代码20180829\盛威源代码\NETERP\bin\x86\Debug\Interop.Excel.dll</HintPath>
      <HintPath>..\DLL\Interop.Excel.dll</HintPath>
    </Reference>
    <Reference Include="NPOI, Version=2.1.3.1, Culture=neutral, PublicKeyToken=0df73ec7942b34e1, processorArchitecture=MSIL">
      <SpecificVersion>False</SpecificVersion>
@@ -173,6 +173,12 @@
    </Compile>
    <Compile Include="条码打印\Gy_BarCodeBillEdit.Designer.cs">
      <DependentUpon>Gy_BarCodeBillEdit.cs</DependentUpon>
    </Compile>
    <Compile Include="条码打印\Kf_AGVRequestBill_FastList.cs">
      <SubType>Form</SubType>
    </Compile>
    <Compile Include="条码打印\Kf_AGVRequestBill_FastList.designer.cs">
      <DependentUpon>Kf_AGVRequestBill_FastList.cs</DependentUpon>
    </Compile>
    <Compile Include="条码打印\WMS_BarCodeStatusQuery.cs">
      <SubType>Form</SubType>
@@ -598,6 +604,10 @@
      <SubType>Designer</SubType>
      <DependentUpon>Gy_BarCodeBillEdit.cs</DependentUpon>
    </EmbeddedResource>
    <EmbeddedResource Include="条码打印\Kf_AGVRequestBill_FastList.resx">
      <DependentUpon>Kf_AGVRequestBill_FastList.cs</DependentUpon>
      <SubType>Designer</SubType>
    </EmbeddedResource>
    <EmbeddedResource Include="条码打印\WMS_BarCodeStatusQuery.resx">
      <DependentUpon>WMS_BarCodeStatusQuery.cs</DependentUpon>
      <SubType>Designer</SubType>
SCM/¹«ÓÃÀà/ClsPub1.cs
@@ -14,7 +14,7 @@
        //public static string WEBSURL = "http://124.70.129.242/WEBS-WMS/WebService1.asmx";             //雅琪诺
        //public static string WEBSURL = "http://192.168.1.29/WEBS-WMS/WebService1.asmx";               //圣龙    å†…网
        //public static string WEBSURL = "http://122.227.138.236/WEBS-WMS/WebService1.asmx";            //圣龙(不用)
        //public static string WEBSURL = "http://220.189.218.154:8091/WEBS-WMS/WebService1.asmx";       //四维尔   å¤–网
        public static string WEBSURL = "http://220.189.218.154:8091/WEBS-WMS/WebService1.asmx";       //四维尔   å¤–网
        //public static string WEBSURL = "http://192.168.0.66/WEBS-WMS/WebService1.asmx";               //四维尔   å†…网
        //public static string WEBSURL = "http://220.189.218.154:8091/WEBS-WMS-TEST/WebService1.asmx";  //四维尔测试
        //public static string WEBSURL = "http://220.189.218.154:8092/WEBS-WMS/WebService1.asmx";   //四维尔    æ–°ä¸­é—´å±‚    å¤–网
@@ -26,9 +26,11 @@
        //public static string WEBSURL = "http://192.192.192.13/WMSWEBS/WebService1.asmx";              //卓力
        //public static string WEBSURL = "http://120.195.29.36:1230/WEBS-WMS/WebService1.asmx";         //江苏龙亨
        //public static string WEBSURL = "http://60.191.27.141:8090/WEBS-WMS/WebService1.asmx";         //森楷
        public static string WEBSURL = "http://192.168.63.195/WEBS-WMS/WebService1.asmx";
        //public static string WEBSURL = "http://192.168.63.195/WEBS-WMS/WebService1.asmx";
        //public static string WEBSURL = "http://192.168.2.18/WEBS-WMS/WebService1.asmx";              //公司台式机
        //public static string WEBSURL = "http://192.168.0.107/WEBS-WMS/WebService1.asmx";              //å®¶
        //public static string WEBSURL = "http://47.96.97.237/WEBS-WMS/WebService1.asmx";              //公司台式机
        public static long HOrgID = 0;
        public static string HOrgNumber = "";
        public static long HPersonL = 2;   // ä»“库人员为1,车间人员为2
SCM/ÌõÂë´òÓ¡/Kf_AGVRequestBill_FastList.cs
New file
@@ -0,0 +1,863 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using gregn6Lib;
//using SQLHelper;
using DBUtility;
using System.Threading;
using System.IO;
namespace SCM
{
    public partial class Kf_AGVRequestBill_FastList : Form
    {
        public Kf_AGVRequestBill_FastList()
        {
            InitializeComponent();
        }
        public frmBillQueryCondition_Base frmCondition;
        public string ViewName = "h_v_Kf_AGVRequestBillList";
        public string ModCaption = "AGV配送单列表";
        public const string ModName = "1299";
        public const string ModRightName = "Kf_AGVRequestBill_FastList";
        public const string ModRightNameEdit = ModRightName + "_Edit";      //删除
        public const string ModRightNameCheck = ModRightName + "_Check";
        public const string ModRightNameClose = ModRightName + "_Close";
        public const string ModRightNameDelete = ModRightName + "_Delete";  //作废
        public const string ModRightNamePrint = ModRightName + "_Print";    //打印
        SCM.WMSWeb.WebService1 oWeb = new SCM.WMSWeb.WebService1();
        public string CampanyName;
        //DAL.ClsGy_ICBomBill oBill = new DAL.ClsGy_ICBomBill();
        //public  Gy_ICBomBill oFrm;
        public int selectRow = 0;
        public int selectRow2 = 0;
        //
        private void initGrid()
        {
            ClsPub1.initGridList(grdMain, this.Name);
        }
        //
        private void Display()
        {
            //ClsCN SubCn = new ClsCN();
            DataSet DSet;
            string sSql = "";
            string sWhere = "";
            //过滤条件
            if (frmCondition.SqlStr.Trim().Length == 0)
                return;
            sSql = frmCondition.SqlStr + sWhere + " order by hmainid desc  ";
            //
            DSet = oWeb.getDataSetBySQL(sSql, ViewName, ref DBUtility.ClsPub.sExeReturnInfo);
            //DSet = SubCn.RunProcReturn(sSql, ViewName, ref DBUtility.ClsPub.sExeReturnInfo);
            //生成首行标题
            if (DSet == null)
            {
                MessageBox.Show("没有返回任何结果,请在过滤框中点击【恢复】按钮,尝试再次查询!" + DBUtility.ClsPub.sExeReturnInfo);
                return;
            }
            //
            grdMain.DataSource = DSet.Tables[0].DefaultView;
            //冻结
            int FrCol = DBUtility.ClsPub.isInt(frmCondition.txtFrozenCol.Text);
            string s = frmCondition.cmbHComplete.Text;
            ClsPub1.DisplayGrid(grdMain, this.Name, s, FrCol);
            //画线
            GraphLine();
            //
        }
        //
        private void timer1_Tick(object sender, EventArgs e)
        {
            timer1.Enabled=false;
            initGrid();
            Display();
        }
        private void tc_Click(object sender, EventArgs e)
        {
            this.Close();
        }
        private void sx_Click(object sender, EventArgs e)
        {
            timer1.Enabled = true;
        }
        private void dj_Click(object sender, EventArgs e)
        {
            Sub_ShowBill();
        }
        //显示单据
        private void Sub_ShowBill()
        {
            Int64 lngBillKey = 0;
            if (grdMain.CurrentRow == null)
                return;
            lngBillKey = DBUtility.ClsPub.isLong(grdMain.Rows[grdMain.CurrentRow.Index].Cells[Fun_GetCol("hitemid")].Value);
            if (lngBillKey == 0)
                return;
            Gy_BarCodeBillEdit oEdit = new Gy_BarCodeBillEdit();
            oEdit.sItemID = lngBillKey;
            oEdit.sBarCode = DBUtility.ClsPub.isStrNull(grdMain.Rows[grdMain.CurrentRow.Index].Cells[Fun_GetCol("条码编号")].Value);
            oEdit.ShowDialog();
            timer1.Enabled = true;
        }
        //
        private Int32 Fun_GetCol(string sCol)
        {
            return DBUtility.Xt_BaseBillFun.Fun_GetCol(sCol, grdMain);
        }
        //
        private void Kf_AGVRequestBill_FastList_Load(object sender, EventArgs e)
        {
            //设置动态URL
            oWeb.Url = SCM.ClsPub1.WEBSURL;
            //
            frmCondition = new frmBillQueryCondition_Base();
            this.Text = ModCaption;
            lblCaption.Text = ModCaption;
            initGrid();
        }
        private void grdMain_DblClick(object sender, EventArgs e)
        {
            //Sub_ShowBill();
        }
        private void cx_Click(object sender, EventArgs e)
        {
            frmCondition = new frmBillQueryCondition_Base();
            SetCondition(frmCondition, ViewName, this.Name);
            frmCondition.ShowDialog();
            if (frmCondition.Tag.ToString() == "OK")
            {
                Display();
            }
        }
        public void SetCondition(frmBillQueryCondition_Base frmCondition, string ViewName, string Name)
        {
            frmCondition.Tag = "";
            frmCondition.ViewName = ViewName;
            frmCondition.ModName = Name;
        }
        private void xz_Click(object sender, EventArgs e)
        {
            //
            //oFrm = new Gy_ICBomBill();
            //oFrm.ShowDialog();
        }
        private void sc_Click(object sender, EventArgs e)
        {
            Sub_DeleteBill();
        }
        //删除
        private void Sub_DeleteBill()
        {
            //WEBS
            if (!oWeb.getSecurity_Log(ModRightNameEdit, DBUtility.ClsPub.CurUserName, ref DBUtility.ClsPub.sExeReturnInfo))
            {
                MessageBox.Show("您没有删除权限!");
                return;
            }
            Int64 lngBillKey = 0;
            string HBarCode = "";
            if (grdMain.CurrentRow == null)
                return;
            if (grdMain.SelectedRows.Count != 1)
            {
                MessageBox.Show("不允许多行删除,请重新选择要删除的条码!");
                return;
            }
            //--制单人必须相同
            if (CampanyName == "森楷") //系统参数  å®¢æˆ·å®šåˆ¶åŒ–名称
            {
                if (DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[0].Cells[Fun_GetCol("制单人")].Value) != DBUtility.ClsPub.CurUserName)
                {
                    MessageBox.Show("您选的第" + grdMain.SelectedRows[0].Index.ToString() + "行,条码制单人不是您本人,不允许删除!");
                    return;
                }
            }
            if (MessageBox.Show("确定要删除所选条码?删除后不能恢复,请谨慎操作!", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
            {
                lngBillKey = DBUtility.ClsPub.isLong(grdMain.SelectedRows[0].Cells[Fun_GetCol("hmainid")].Value);
                HBarCode = DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[0].Cells[Fun_GetCol("条码编号")].Value);
                if (lngBillKey == 0)
                return;
                try
                {
                    DataSet DS = oWeb.getDataSetBySQL("exec h_p_Gy_BarCodeBill_Delete " + lngBillKey + ",'" + HBarCode + "','" + DBUtility.ClsPub.CurUserName + "','" + DBUtility.ClsPub.ComputerName + "','" + DBUtility.ClsPub.IPAddress + "'", "h_p_Gy_BarCodeBill_Delete", ref DBUtility.ClsPub.sExeReturnInfo);
                    if (DS == null || DS.Tables[0].Rows.Count <= 0)
                    {
                        MessageBox.Show("删除失败!");
                        return;
                    }
                    else
                    {
                        MessageBox.Show(DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HRemark"]));
                        Display();
                    }
                }
                catch (Exception e)
                {
                    throw (e);
                }
            }
            //原先删除条码方法
            //DataSet DS;
            //DataSet DS2;
            //bool sBool = true;
            //Int64 lngBillKey = 0;
            //if (grdMain.CurrentRow == null)
            //    return;
            //if (MessageBox.Show("确定要删除所选单据?", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
            //{
            //    for (int i = 0; i <= grdMain.SelectedRows.Count - 1; i++)
            //    {
            //        lngBillKey = DBUtility.ClsPub.isLong(grdMain.SelectedRows[i].Cells[Fun_GetCol("hmainid")].Value);
            //        if (lngBillKey == 0)
            //            return;
            //        try
            //        {
            //            DS = oWeb.getDataSetBySQL("Select * from Gy_BarCodeBill Where HItemID=" + lngBillKey, "Gy_BarCodeBill", ref DBUtility.ClsPub.sExeReturnInfo);
            //            DS2 = oWeb.getDataSetBySQL("Select * from Gy_BarCodeBill a inner join Kf_ICStockBillSub_WMS b on a.HBarCode=b.HBarCode where a.HItemID=" + lngBillKey, "Gy_BarCodeBill", ref DBUtility.ClsPub.sExeReturnInfo);
            //            if (DS2.Tables[0].Rows.Count == 0)
            //            {
            //                sBool = false;
            //            }
            //            else
            //            {
            //                sBool = true;
            //            }
            //            if (DS.Tables[0].Rows.Count == 0)
            //            {
            //                MessageBox.Show("单据未找到!", "提示");
            //                return;
            //            }
            //            else
            //            {
            //                if (sBool)
            //                {
            //                    MessageBox.Show("删除失败,条码" + grdMain.SelectedRows[i].Cells[Fun_GetCol("条码编号")].Value + "已被使用", "提示");
            //                    Display();
            //                    return;
            //                }
            //                else
            //                {
            //                    oWeb.getRunProc("Delete from Gy_BarCodeBill where HItemID=" + lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo);
            //                    oWeb.getRunProc("insert into System_log values(GETDATE(),'" + DBUtility.ClsPub.CurUserName + "','" + DBUtility.ClsPub.CurUserName + "','删除条码:" + DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("条码编号")].Value) + "' ,'WMS系统','','删除')", ref DBUtility.ClsPub.sExeReturnInfo);
            //                }
            //            }
            //        }
            //        catch (Exception e)
            //        {
            //            throw (e);
            //        }
            //    }
            //}
            //MessageBox.Show("删除成功!", "提示");
            //Display();
        }
        //删除
        private void Sub_MulDeleteBill()
        {
            //WEBS
            if (!oWeb.getSecurity_Log(ModRightNameEdit, DBUtility.ClsPub.CurUserName, ref DBUtility.ClsPub.sExeReturnInfo))
            {
                MessageBox.Show("您没有删除权限!");
                return;
            }
            string HItemID = "";
            string HBarCode = "";
            if (grdMain.CurrentRow == null)
                return;
            if (MessageBox.Show("确定要批量删除所选条码?删除后不能恢复,请谨慎操作!", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
            {
                for (int i = 0; i < grdMain.SelectedRows.Count; i++)
                {
                    HItemID = HItemID + "," + DBUtility.ClsPub.isLong(grdMain.SelectedRows[i].Cells[Fun_GetCol("hmainid")].Value.ToString());
                    HBarCode = HBarCode + "," + DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("条码编号")].Value);
                    //--制单人必须相同
                    if (CampanyName == "森楷") //系统参数  å®¢æˆ·å®šåˆ¶åŒ–名称
                    {
                        if (DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("制单人")].Value) != DBUtility.ClsPub.CurUserName)
                        {
                            MessageBox.Show("您选的第"+ grdMain.SelectedRows[i].Index.ToString() + "行,条码制单人不是您本人,不允许删除!");
                            return;
                        }
                    }
                }
                try
                {
                    DataSet DS = oWeb.getDataSetBySQL("exec h_p_Gy_BarCodeBill_MulDelete '" + HItemID + "','" + HBarCode + "','" + DBUtility.ClsPub.CurUserName + "','" + DBUtility.ClsPub.ComputerName + "','" + DBUtility.ClsPub.IPAddress + "'", "h_p_Gy_BarCodeBill_MulDelete", ref DBUtility.ClsPub.sExeReturnInfo);
                    if (DS == null || DS.Tables[0].Rows.Count <= 0)
                    {
                        MessageBox.Show("批量删除失败!");
                        return;
                    }
                    else
                    {
                        MessageBox.Show(DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HRemark"]));
                        Display();
                    }
                }
                catch (Exception e)
                {
                    throw (e);
                }
            }
            ////原先批量删除条码方法
            //DataSet DS;
            //DataSet DS2;
            //bool sBool = true;
            //Int64 lngBillKey = 0;
            //if (grdMain.SelectedRows == null)
            //    return;
            //if (MessageBox.Show("确定要批量删除所选条码?删除后不能恢复,请谨慎操作", "提示", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK)
            //{
            //    string[] sSQLMul = new string[grdMain.SelectedRows.Count];
            //    for (int i = 0; i <= grdMain.SelectedRows.Count - 1; i++)
            //    {
            //        lngBillKey = DBUtility.ClsPub.isLong(grdMain.SelectedRows[i].Cells[Fun_GetCol("hmainid")].Value);
            //        sSQLMul[i] = " Delete from Gy_BarCodeBill where HItemID= " + lngBillKey ;
            //        sSQLMul[i] = sSQLMul[i] + "  " + "insert into System_log values(GETDATE(),'" + DBUtility.ClsPub.CurUserName + "','" + DBUtility.ClsPub.CurUserName + "','删除条码:" + DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("条码编号")].Value) + "' ,'WMS系统','','删除')";
            //    }
            //    oWeb.getRunProcByMul(sSQLMul, ref DBUtility.ClsPub.sExeReturnInfo);
            //}
            //MessageBox.Show("批量删除成功!", "提示");
            //Display();
        }
        private void timer2_Tick(object sender, EventArgs e)
        {
            timer2.Enabled = false;
            frmCondition = new frmBillQueryCondition_Base();
            SetCondition(frmCondition, ViewName, this.Name);
            frmCondition.ShowDialog();
            //获取系统参数  å®¢æˆ·å®šåˆ¶åŒ–名称
            DataSet Ds = oWeb.getDataSetBySQL("select HValue from Xt_SystemParameter with(nolock) where HKey='WMS_CampanyName'", "Xt_SystemParameter", ref DBUtility.ClsPub.sExeReturnInfo);
            if (Ds == null || Ds.Tables[0].Rows.Count == 0)
            {
                MessageBox.Show("获取系统参数失败!原因:" + DBUtility.ClsPub.sExeReturnInfo, "提示");
                return;
            }
            else
            {
                CampanyName = DBUtility.ClsPub.isStrNull(Ds.Tables[0].Rows[0]["HValue"]);
            }
            if (frmCondition.Tag.ToString() == "OK")
            {
                timer1.Enabled = true;
            }
        }
        private void bclk_Click(object sender, EventArgs e)
        {
            //保存列宽
            DBUtility.Xt_BaseBillFun.SaveGrid(grdMain, this.Name);
        }
        private void mrlk_Click(object sender, EventArgs e)
        {
            DBUtility.Xt_BaseBillFun.DefaultGridView(grdMain, this.Name);
        }
        //
        private void GraphLine()
        {
            int MainIDCol = Fun_GetCol("hmainid");
            int SubIDCol = Fun_GetCol("hsubid");
            string s = frmCondition.cmbHComplete.Text;
            long n=0;
            DBUtility.Xt_BaseBillFun.GraphLine(grdMain, MainIDCol, SubIDCol, s, ref n);
            //显示
            lbldj.Text = "查询出 " + n.ToString() + " å¼ å•据";
            lbljl.Text = "共有 " + grdMain.RowCount.ToString() + " æ¡è®°å½•";
        }
        //审核
        private void sh_Click(object sender, EventArgs e)
        {
            this.Sub_CheckBill();
        }
        //审核单据
        private void Sub_CheckBill()
        {
            ////审核权限
            //if (!DBUtility.ClsPub.Security_Log(ModRightNameCheck, 1, true,DBUtility.ClsPub.CurUserName))
            //{
            //    return;
            //}
            ////
            //Int64 lngBillKey = 0;
            //if (grdMain.CurrentRow == null)
            //    return;
            //lngBillKey = DBUtility.ClsPub.isLong(grdMain.Rows[grdMain.CurrentRow.Index].Cells[Fun_GetCol("hmainid")].Value);
            //if (lngBillKey == 0)
            //    return;
            //DAL.ClsGy_ICBomBill  oBill = new DAL.ClsGy_ICBomBill();
            ////查看是否已审核,关闭,作废
            //if (oBill.ShowBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo))
            //{
            //    if (oBill.omodel.HChecker.Trim() != "")
            //    {
            //        MessageBox.Show("单据已审核!不能再次审核", "提示");
            //        return;
            //    }
            //}
            //else
            //{
            //    MessageBox.Show("单据不存在!原因:" + DBUtility.ClsPub.sExeReturnInfo, "提示");
            //    return;
            //}
            ////审核
            //if (oBill.CheckBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo) == true)
            //{
            //    MessageBox.Show("审核成功!", "提示");
            //    return;
            //}
            //else
            //{
            //    MessageBox.Show("审核失败!原因:" + DBUtility.ClsPub.sExeReturnInfo, "提示");
            //    return;
            //}
        }
        //反审单据
        private void Sub_AbandonCheck()
        {
            ////审核权限
            //if (!DBUtility.ClsPub.Security_Log(ModRightNameCheck, 1, true,DBUtility.ClsPub.CurUserName))
            //{
            //    return;
            //}
            ////
            //Int64 lngBillKey = 0;
            //if (grdMain.CurrentRow == null)
            //    return;
            //lngBillKey = DBUtility.ClsPub.isLong(grdMain.Rows[grdMain.CurrentRow.Index].Cells[Fun_GetCol("hmainid")].Value);
            //if (lngBillKey == 0)
            //    return;
            //DAL.ClsGy_ICBomBill  oBill = new DAL.ClsGy_ICBomBill();
            ////查看是否已审核,关闭,作废
            //if (oBill.ShowBill(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo))
            //{
            //    if (oBill.omodel.HChecker.Trim() == "")
            //    {
            //        MessageBox.Show("单据未审核!不需要反审核!", "提示");
            //        return;
            //    }
            //}
            //else
            //{
            //    MessageBox.Show("单据不存在!原因:" + DBUtility.ClsPub.sExeReturnInfo, "提示");
            //    return;
            //}
            ////反审核
            //if (oBill.AbandonCheck(lngBillKey, ref DBUtility.ClsPub.sExeReturnInfo) == true)
            //{
            //    MessageBox.Show("反审核成功!", "提示");
            //    return;
            //}
            //else
            //{
            //    MessageBox.Show("反审核失败!原因:" + DBUtility.ClsPub.sExeReturnInfo, "提示");
            //    return;
            //}
        }
        //反审核
        private void qsh_Click(object sender, EventArgs e)
        {
            Sub_AbandonCheck();
        }
        private void GraphicsGrid()
        {
            DBUtility.Xt_BaseBillFun.GraphicsGrid(grdMain);
        }
        #region  //打印设置
        GridppReport Report;
        string sBarCode = "";
        //预览
        int CurRows = 0;
        private void yl_Click(object sender, EventArgs e)
        {
            //WEBS
            if (!oWeb.getSecurity_Log(ModRightNamePrint, DBUtility.ClsPub.CurUserName, ref DBUtility.ClsPub.sExeReturnInfo))
            {
                MessageBox.Show("您没有打印预览权限!");
                return;
            }
            //打印前判断条码是否已打印过
            if (ReportPrintBegin())
            {
                return;
            }
            //选择打印模板
            SCM.Gy_OpenTmp oFrm = new SCM.Gy_OpenTmp();
            oFrm.sBillName = ModName;
            oFrm.sBillModel = ModCaption;
            oFrm.ShowDialog();
            if (oFrm.OKTag == Pub_Class.ClsPub.Enum_OKTag.OKTag_OK)
            {
                Sub_SetReport(oFrm.sOpenTmp);
                Report.PrintPreview(false);
                Thread.Sleep(1000);
            }
        }
        //打印前判断条码是否已打印过
        private bool ReportPrintBegin()
        {
            sBarCode = "";
            string sRelQty = "";
            for (int i = 0; i < grdMain.SelectedRows.Count; i++)
            {
                sBarCode = sBarCode + "," + DBUtility.ClsPub.isStrNull(grdMain.Rows[grdMain.SelectedRows[i].Index].Cells[Fun_GetCol("条码编号")].Value);
            }
            if (oWeb.Set_BPrintQtyBarCode(sBarCode.Substring(1), ref sRelQty))
            {
                MessageBox.Show(sRelQty);
                return true;
            }
            else
            {
                return false;
            }
        }
        //打印结束后回填条码打印次数
        private void ReportPrintEnd()
        {
            try
            {
                oWeb.getRunProc("exec h_p_Gy_BarCodePrintQty_Update '" + sBarCode + "'", ref DBUtility.ClsPub.sExeReturnInfo);
            }
            catch (Exception e)
            {
                MessageBox.Show("打印失败!打印结束 ï¼š" + e.Message);
            }
        }
        private void Sub_SetReport(string sOpenTmp)
        {
            //判断行数
            for (int i = 0; i < grdMain.Rows.Count; i++)
            {
                grdMain.Rows[i].Cells[0].Value = "";
            }
            for (int i = 0; i < grdMain.SelectedRows.Count; i++)
            {
                grdMain.Rows[grdMain.SelectedRows[i].Index].Cells[0].Value = "*";
            }
            //
            Report = new GridppReport();
            Report.LoadFromFile(DBUtility.ClsPub.AppPath + @"\" + sOpenTmp + ".grf");  //here .
            Report.BeforePostRecord += new _IGridppReportEvents_BeforePostRecordEventHandler(ReportBeforePostRecord);
            Report.FetchRecord += new _IGridppReportEvents_FetchRecordEventHandler(ReportFetchRecordByDataTable);
            Report.PrintEnd += new _IGridppReportEvents_PrintEndEventHandler(ReportPrintEnd);
        }
        //填入单据表头信息
        private void ReportBeforePostRecord()//your report?kao
        {
            try
            {
                //Report.FieldByName("物料代码").AsString = grdMain.Rows[CurRows].Cells[Fun_GetCol("物料代码")].Value.ToString();
                //Report.FieldByName("物料名称").AsString = grdMain.Rows[CurRows].Cells[Fun_GetCol("物料名称")].Value.ToString();
                //Report.FieldByName("规格型号").AsString = grdMain.Rows[CurRows].Cells[Fun_GetCol("规格型号")].Value.ToString();
                ////Report.FieldByName("自定义规格").AsString = grdMain.Rows[CurRows].Cells[Fun_GetCol("自定义规格")].Value.ToString();
                //Report.FieldByName("条码编号").AsString = grdMain.Rows[CurRows].Cells[Fun_GetCol("条码编号")].Value.ToString();
                //Report.FieldByName("数量").AsString = grdMain.Rows[CurRows].Cells[Fun_GetCol("数量")].Value.ToString();
                //Report.FieldByName("批次").AsString = grdMain.Rows[CurRows].Cells[Fun_GetCol("批号")].Value.ToString();
                //Report.FieldByName("源单单号").AsString = grdMain.Rows[CurRows].Cells[Fun_GetCol("源单单号")].Value.ToString();
                //Report.FieldByName("销售订单号").AsString = grdMain.Rows[CurRows].Cells[Fun_GetCol("销售订单号")].Value.ToString();
                //Report.FieldByName("采购订单号").AsString = grdMain.Rows[CurRows].Cells[Fun_GetCol("采购订单号")].Value.ToString();
                //Report.FieldByName("供应商").AsString = grdMain.Rows[CurRows].Cells[Fun_GetCol("往来单位")].Value.ToString();
                //Report.FieldByName("生产车间").AsString = grdMain.Rows[CurRows].Cells[Fun_GetCol("生产车间")].Value.ToString();
                //Report.FieldByName("备注").AsString = grdMain.Rows[CurRows].Cells[Fun_GetCol("备注")].Value.ToString();
                //Report.FieldByName("总托数").AsString = grdMain.Rows[CurRows].Cells[Fun_GetCol("总托数")].Value.ToString();
                //Report.FieldByName("托号").AsString = grdMain.Rows[CurRows].Cells[Fun_GetCol("托号")].Value.ToString();
            }
            catch (Exception e)
            {
                MessageBox.Show("打印失败!表头:" + e.Message);
            }
            //CurRows = CurRows + 1;
        }
        private void ReportFetchRecordByDataTable()
        {
            try
            {
                DataTable ds = new DataTable();
                SCM.Utility.FillRecordToReport(Report, grdMain, ds, Fun_GetCol("选择"));
                //BLL.Utility.FillRecordToReport_Sel(Report, grdMain, ds, Fun_GetCol("选择"));
            }
            catch (Exception e)
            {
                MessageBox.Show("打印失败!表体:" + e.Message);
            }
        }
        #endregion
        //
        private void grdMain_Paint(object sender, PaintEventArgs e)
        {
            GraphicsGrid();
        }
        private void dy_Click(object sender, EventArgs e)
        {
            //WEBS
            if (!oWeb.getSecurity_Log(ModRightNamePrint, DBUtility.ClsPub.CurUserName, ref DBUtility.ClsPub.sExeReturnInfo))
            {
                MessageBox.Show("您没有打印预览权限!");
                return;
            }
            //打印前判断条码是否已打印过
            if (ReportPrintBegin())
            {
                return;
            }
            //选择打印模板
            SCM.Gy_OpenTmp oFrm = new SCM.Gy_OpenTmp();
            oFrm.sBillName = ModName;
            oFrm.sBillModel = ModCaption;
            oFrm.ShowDialog();
            if (oFrm.OKTag == Pub_Class.ClsPub.Enum_OKTag.OKTag_OK)
            {
                Sub_SetReport(oFrm.sOpenTmp);
                Report.Print(true);
                //oBar.Set_PrintQty(DBUtility.ClsPub.isStrNull(grdMain.Rows[CurRows].Cells[Fun_GetCol("条码编号")].Value));
                Thread.Sleep(1000);
            }
        }
        private void dy2_Click(object sender, EventArgs e)
        {
            ////选择打印模板
            //BLL.Gy_OpenTmp oFrm = new BLL.Gy_OpenTmp();
            //DAL.ClsGy_BarCodeBill_Ctl oBar = new DAL.ClsGy_BarCodeBill_Ctl();
            //oFrm.sBillName = ModName;
            //oFrm.sBillModel = ModCaption;
            //oFrm.ShowDialog();
            //if (oFrm.OKTag == Pub_Class.ClsPub.Enum_OKTag.OKTag_OK)
            //{
            //    //
            //    for (int i = 0; i <= grdMain.SelectedRows.Count - 1; i++)
            //    {
            //        selectRow = i;
            //        selectRow2 = i + 1;
            //        Sub_SetReport(oFrm.sOpenTmp);
            //        Report.Print(false);
            //        oBar.Set_PrintQty(DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("条码编号")].Value));
            //        //
            //        if (selectRow2 > grdMain.SelectedRows.Count - 1)
            //        {
            //        }
            //        else
            //        {
            //            oBar.Set_PrintQty(DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i + 1].Cells[Fun_GetCol("条码编号")].Value));
            //        }
            //        Thread.Sleep(1000);
            //        i++;
            //    }
            //}
        }
        private void yc_Click(object sender, EventArgs e)
        {
            DataGridViewToExcel2(grdMain, this.Text, this.Text);
        }
        /// <summary>
        /// ç½‘æ ¼ å¯¼å‡ºEXCEL   ç½‘格,文件名,标题名
        /// </summary>
        public static void DataGridViewToExcel2(DataGridView grdMain, string sText, string sBTText)
        {
            SaveFileDialog saveFileDialog = new SaveFileDialog();
            saveFileDialog.Filter = "Execl文件(*.xls)|*.xls";
            saveFileDialog.FilterIndex = 0;
            saveFileDialog.RestoreDirectory = true;
            saveFileDialog.CreatePrompt = true;
            saveFileDialog.Title = "数据视图导出EXCEL文件";
            saveFileDialog.FileName = sText;
            //saveFileDialog.ShowDialog();
            if (saveFileDialog.ShowDialog() == DialogResult.OK)
            {
                Stream myStream;
                myStream = saveFileDialog.OpenFile();
                StreamWriter sw = new StreamWriter(myStream, System.Text.Encoding.GetEncoding("gb2312"));
                string str = "";
                DateTime start = DateTime.Now;
                try
                {
                    if (sBTText != "")
                    {
                        sw.WriteLine(sBTText);
                    }
                    //写标题
                    bool sFirstCol = true;
                    for (int i = 0; i < grdMain.ColumnCount; i++)
                    {
                        if (i > 0 && grdMain.Columns[i].HeaderText.Substring(0, 1) != "h" && grdMain.Columns[i].HeaderText.Substring(0, 1) != "H" && sFirstCol != true)
                        {
                            str += "\t";
                        }
                        if (grdMain.Columns[i].HeaderText.Substring(0, 1) != "h" && grdMain.Columns[i].HeaderText.Substring(0, 1) != "H")
                        {
                            sFirstCol = false;
                            str += grdMain.Columns[i].HeaderText;
                        }
                    }
                    str = str.Replace("\n", "");
                    sw.WriteLine(str);
                    //写内容
                    for (int j = 0; j < grdMain.Rows.Count; j++)
                    {
                        string tempStr = "";
                        sFirstCol = true;
                        for (int k = 0; k < grdMain.Columns.Count; k++)
                        {
                            if (k > 0 && grdMain.Columns[k].HeaderText.Substring(0, 1) != "h" && grdMain.Columns[k].HeaderText.Substring(0, 1) != "H" && sFirstCol != true)
                            {
                                tempStr += "\t";
                            }
                            if (grdMain.Columns[k].HeaderText.Substring(0, 1) != "h" && grdMain.Columns[k].HeaderText.Substring(0, 1) != "H")
                            {
                                sFirstCol = false;
                                if (grdMain.Rows[j].Cells[k].Value == null)
                                {
                                    tempStr += string.Empty;
                                }
                                else
                                {
                                    tempStr += grdMain.Rows[j].Cells[k].Value.ToString();
                                }
                            }
                        }
                        tempStr = tempStr.Replace("\n", "");
                        sw.WriteLine(tempStr);
                    }
                    sw.Close();
                    myStream.Close();
                }
                catch (Exception ex)
                {
                    MessageBox.Show(ex.Message);
                }
                finally
                {
                    sw.Close();
                    myStream.Close();
                }
                MessageBox.Show("将此工作表导出为excel共耗时:" + DateTime.Now.Subtract(start).TotalMilliseconds.ToString() + "毫秒");
            }
        }
        //导出功能
        private void dc_Click(object sender, EventArgs e)
        {
            SCM.公用类.Xt_BaseBillFun.DataToExcel(this.Text, grdMain);
        }
        private void zf_Click(object sender, EventArgs e)
        {
            // ;  //WEBS
            if (!oWeb.getSecurity_Log(ModRightNameDelete, DBUtility.ClsPub.CurUserName, ref DBUtility.ClsPub.sExeReturnInfo))
            {
                MessageBox.Show("您没有权限!");
                return;
            }
            if (grdMain.CurrentRow == null)
                return;
            if (MessageBox.Show("确定要作废所选条码?", "提示", MessageBoxButtons.OKCancel) == DialogResult.Cancel)
            {
                return;
            }
            for (int i = 0; i <= grdMain.SelectedRows.Count - 1; i++)
            {
                if (DBUtility.ClsPub.isLong(grdMain.SelectedRows[i].Cells[Fun_GetCol("HMaterID")].Value) != 0)
                {
                    if (!oWeb.set_CancelltionBarCodeBill(DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("条码编号")].Value)))
                    {
                        MessageBox.Show("作废失败!", "提示");
                        return;
                    }
                }
            }
            MessageBox.Show("作废成功!", "提示");
            Display();
        }
        private void fzf_Click(object sender, EventArgs e)
        {
            // //WEBS
            if (!oWeb.getSecurity_Log(ModRightNameDelete, DBUtility.ClsPub.CurUserName, ref DBUtility.ClsPub.sExeReturnInfo))
            {
                MessageBox.Show("您没有权限!");
                return;
            }
            if (grdMain.CurrentRow == null)
                return;
            if (MessageBox.Show("确定要反作废所选条码?", "提示", MessageBoxButtons.OKCancel) == DialogResult.Cancel)
            {
                return;
            }
            for (int i = 0; i <= grdMain.SelectedRows.Count - 1; i++)
            {
                if (DBUtility.ClsPub.isLong(grdMain.SelectedRows[i].Cells[Fun_GetCol("HMaterID")].Value) != 0)
                {
                    if (!oWeb.set_UnCancelltionBarCodeBill(DBUtility.ClsPub.isStrNull(grdMain.SelectedRows[i].Cells[Fun_GetCol("条码编号")].Value)))
                    {
                        MessageBox.Show("反作废失败!", "提示");
                        return;
                    }
                }
            }
            MessageBox.Show("反作废成功!", "提示");
            Display();
        }
        private void ps_Click(object sender, EventArgs e)
        {
            Sub_MulDeleteBill();
        }
    }
}
SCM/ÌõÂë´òÓ¡/Kf_AGVRequestBill_FastList.designer.cs
New file
@@ -0,0 +1,596 @@
namespace SCM
{
    partial class Kf_AGVRequestBill_FastList
    {
        /// <summary>
        /// å¿…需的设计器变量。
        /// </summary>
        private System.ComponentModel.IContainer components = null;
        /// <summary>
        /// æ¸…理所有正在使用的资源。
        /// </summary>
        /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }
        #region Windows çª—体设计器生成的代码
        /// <summary>
        /// è®¾è®¡å™¨æ”¯æŒæ‰€éœ€çš„æ–¹æ³• - ä¸è¦
        /// ä½¿ç”¨ä»£ç ç¼–辑器修改此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Kf_AGVRequestBill_FastList));
            this.pPic = new System.Windows.Forms.Panel();
            this.panel1 = new System.Windows.Forms.Panel();
            this.lbljl = new System.Windows.Forms.Label();
            this.lbldj = new System.Windows.Forms.Label();
            this.lblCaption = new System.Windows.Forms.Label();
            this.Tool = new System.Windows.Forms.ToolStrip();
            this.dy = new System.Windows.Forms.ToolStripButton();
            this.dy2 = new System.Windows.Forms.ToolStripButton();
            this.yl = new System.Windows.Forms.ToolStripButton();
            this.yc = new System.Windows.Forms.ToolStripButton();
            this.dc = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator();
            this.cx = new System.Windows.Forms.ToolStripButton();
            this.sx = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator();
            this.xz = new System.Windows.Forms.ToolStripButton();
            this.dj = new System.Windows.Forms.ToolStripButton();
            this.sc = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator10 = new System.Windows.Forms.ToolStripSeparator();
            this.ps = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator();
            this.zf = new System.Windows.Forms.ToolStripButton();
            this.fzf = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator();
            this.sh = new System.Windows.Forms.ToolStripButton();
            this.qsh = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator();
            this.tc = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator();
            this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator();
            this.mrlk = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator();
            this.bclk = new System.Windows.Forms.ToolStripButton();
            this.toolStripSeparator8 = new System.Windows.Forms.ToolStripSeparator();
            this.timer1 = new System.Windows.Forms.Timer(this.components);
            this.timer2 = new System.Windows.Forms.Timer(this.components);
            this.grdMain = new System.Windows.Forms.DataGridView();
            this.grdPrint = new System.Windows.Forms.DataGridView();
            this.pPic.SuspendLayout();
            this.panel1.SuspendLayout();
            this.Tool.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.grdMain)).BeginInit();
            ((System.ComponentModel.ISupportInitialize)(this.grdPrint)).BeginInit();
            this.SuspendLayout();
            //
            // pPic
            //
            this.pPic.BackColor = System.Drawing.Color.White;
            this.pPic.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pPic.BackgroundImage")));
            this.pPic.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None;
            this.pPic.Controls.Add(this.panel1);
            this.pPic.Controls.Add(this.lblCaption);
            this.pPic.Dock = System.Windows.Forms.DockStyle.Top;
            this.pPic.Location = new System.Drawing.Point(0, 50);
            this.pPic.Name = "pPic";
            this.pPic.Size = new System.Drawing.Size(1280, 53);
            this.pPic.TabIndex = 15;
            //
            // panel1
            //
            this.panel1.Controls.Add(this.lbljl);
            this.panel1.Controls.Add(this.lbldj);
            this.panel1.Dock = System.Windows.Forms.DockStyle.Right;
            this.panel1.Location = new System.Drawing.Point(1066, 0);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(214, 53);
            this.panel1.TabIndex = 7;
            //
            // lbljl
            //
            this.lbljl.AutoSize = true;
            this.lbljl.Location = new System.Drawing.Point(24, 30);
            this.lbljl.Name = "lbljl";
            this.lbljl.Size = new System.Drawing.Size(11, 12);
            this.lbljl.TabIndex = 1;
            this.lbljl.Text = " ";
            //
            // lbldj
            //
            this.lbldj.AutoSize = true;
            this.lbldj.Location = new System.Drawing.Point(24, 12);
            this.lbldj.Name = "lbldj";
            this.lbldj.Size = new System.Drawing.Size(0, 12);
            this.lbldj.TabIndex = 0;
            //
            // lblCaption
            //
            this.lblCaption.AutoSize = true;
            this.lblCaption.BackColor = System.Drawing.Color.Transparent;
            this.lblCaption.Cursor = System.Windows.Forms.Cursors.No;
            this.lblCaption.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.lblCaption.Location = new System.Drawing.Point(12, 15);
            this.lblCaption.Name = "lblCaption";
            this.lblCaption.Size = new System.Drawing.Size(98, 21);
            this.lblCaption.TabIndex = 4;
            this.lblCaption.Text = "单据列表";
            this.lblCaption.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
            //
            // Tool
            //
            this.Tool.AutoSize = false;
            this.Tool.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("Tool.BackgroundImage")));
            this.Tool.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch;
            this.Tool.ImageScalingSize = new System.Drawing.Size(22, 22);
            this.Tool.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
            this.dy,
            this.dy2,
            this.yl,
            this.yc,
            this.dc,
            this.toolStripSeparator2,
            this.cx,
            this.sx,
            this.toolStripSeparator1,
            this.xz,
            this.dj,
            this.sc,
            this.toolStripSeparator10,
            this.ps,
            this.toolStripSeparator5,
            this.zf,
            this.fzf,
            this.toolStripSeparator6,
            this.sh,
            this.qsh,
            this.toolStripSeparator4,
            this.tc,
            this.toolStripSeparator3,
            this.toolStripSeparator9,
            this.mrlk,
            this.toolStripSeparator7,
            this.bclk,
            this.toolStripSeparator8});
            this.Tool.Location = new System.Drawing.Point(0, 0);
            this.Tool.Name = "Tool";
            this.Tool.Padding = new System.Windows.Forms.Padding(0);
            this.Tool.Size = new System.Drawing.Size(1280, 50);
            this.Tool.Stretch = true;
            this.Tool.TabIndex = 16;
            this.Tool.Text = "toolStrip1";
            //
            // dy
            //
            this.dy.AutoSize = false;
            this.dy.Image = ((System.Drawing.Image)(resources.GetObject("dy.Image")));
            this.dy.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.dy.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.dy.ImageTransparentColor = System.Drawing.Color.White;
            this.dy.Name = "dy";
            this.dy.Size = new System.Drawing.Size(36, 47);
            this.dy.Text = "打印";
            this.dy.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.dy.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.dy.Visible = false;
            this.dy.Click += new System.EventHandler(this.dy_Click);
            //
            // dy2
            //
            this.dy2.AutoSize = false;
            this.dy2.Image = ((System.Drawing.Image)(resources.GetObject("dy2.Image")));
            this.dy2.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.dy2.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.dy2.ImageTransparentColor = System.Drawing.Color.White;
            this.dy2.Name = "dy2";
            this.dy2.Size = new System.Drawing.Size(36, 47);
            this.dy2.Text = "连打";
            this.dy2.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.dy2.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.dy2.Visible = false;
            this.dy2.Click += new System.EventHandler(this.dy2_Click);
            //
            // yl
            //
            this.yl.AutoSize = false;
            this.yl.Image = ((System.Drawing.Image)(resources.GetObject("yl.Image")));
            this.yl.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.yl.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.yl.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.yl.Name = "yl";
            this.yl.Size = new System.Drawing.Size(36, 47);
            this.yl.Text = "预览";
            this.yl.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.yl.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.yl.Visible = false;
            this.yl.Click += new System.EventHandler(this.yl_Click);
            //
            // yc
            //
            this.yc.AutoSize = false;
            this.yc.Image = ((System.Drawing.Image)(resources.GetObject("yc.Image")));
            this.yc.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.yc.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.yc.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.yc.Name = "yc";
            this.yc.Size = new System.Drawing.Size(36, 47);
            this.yc.Text = "引出";
            this.yc.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.yc.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.yc.Visible = false;
            this.yc.Click += new System.EventHandler(this.yc_Click);
            //
            // dc
            //
            this.dc.AutoSize = false;
            this.dc.Image = ((System.Drawing.Image)(resources.GetObject("dc.Image")));
            this.dc.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.dc.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.dc.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.dc.Name = "dc";
            this.dc.Size = new System.Drawing.Size(36, 47);
            this.dc.Text = "导出";
            this.dc.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.dc.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.dc.Visible = false;
            this.dc.Click += new System.EventHandler(this.dc_Click);
            //
            // toolStripSeparator2
            //
            this.toolStripSeparator2.Name = "toolStripSeparator2";
            this.toolStripSeparator2.Size = new System.Drawing.Size(6, 50);
            //
            // cx
            //
            this.cx.AutoSize = false;
            this.cx.Image = ((System.Drawing.Image)(resources.GetObject("cx.Image")));
            this.cx.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.cx.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.cx.ImageTransparentColor = System.Drawing.Color.White;
            this.cx.Name = "cx";
            this.cx.Size = new System.Drawing.Size(36, 47);
            this.cx.Text = "查询";
            this.cx.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.cx.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.cx.Click += new System.EventHandler(this.cx_Click);
            //
            // sx
            //
            this.sx.AutoSize = false;
            this.sx.Image = ((System.Drawing.Image)(resources.GetObject("sx.Image")));
            this.sx.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.sx.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.sx.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.sx.Name = "sx";
            this.sx.Size = new System.Drawing.Size(36, 47);
            this.sx.Text = "刷新";
            this.sx.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.sx.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.sx.Visible = false;
            this.sx.Click += new System.EventHandler(this.sx_Click);
            //
            // toolStripSeparator1
            //
            this.toolStripSeparator1.Name = "toolStripSeparator1";
            this.toolStripSeparator1.Size = new System.Drawing.Size(6, 50);
            this.toolStripSeparator1.Visible = false;
            //
            // xz
            //
            this.xz.AutoSize = false;
            this.xz.Image = ((System.Drawing.Image)(resources.GetObject("xz.Image")));
            this.xz.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.xz.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.xz.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.xz.Name = "xz";
            this.xz.Size = new System.Drawing.Size(36, 47);
            this.xz.Text = "新增";
            this.xz.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.xz.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.xz.Visible = false;
            this.xz.Click += new System.EventHandler(this.xz_Click);
            //
            // dj
            //
            this.dj.AutoSize = false;
            this.dj.Image = ((System.Drawing.Image)(resources.GetObject("dj.Image")));
            this.dj.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.dj.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.dj.ImageTransparentColor = System.Drawing.Color.White;
            this.dj.Name = "dj";
            this.dj.Size = new System.Drawing.Size(36, 47);
            this.dj.Text = "修改";
            this.dj.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.dj.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.dj.Visible = false;
            this.dj.Click += new System.EventHandler(this.dj_Click);
            //
            // sc
            //
            this.sc.AutoSize = false;
            this.sc.Image = ((System.Drawing.Image)(resources.GetObject("sc.Image")));
            this.sc.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.sc.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.sc.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.sc.Name = "sc";
            this.sc.Size = new System.Drawing.Size(36, 47);
            this.sc.Text = "删除";
            this.sc.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.sc.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.sc.Visible = false;
            this.sc.Click += new System.EventHandler(this.sc_Click);
            //
            // toolStripSeparator10
            //
            this.toolStripSeparator10.Name = "toolStripSeparator10";
            this.toolStripSeparator10.Size = new System.Drawing.Size(6, 50);
            //
            // ps
            //
            this.ps.AutoSize = false;
            this.ps.Image = ((System.Drawing.Image)(resources.GetObject("ps.Image")));
            this.ps.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.ps.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.ps.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.ps.Name = "ps";
            this.ps.Size = new System.Drawing.Size(36, 47);
            this.ps.Text = "批删";
            this.ps.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.ps.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.ps.Visible = false;
            this.ps.Click += new System.EventHandler(this.ps_Click);
            //
            // toolStripSeparator5
            //
            this.toolStripSeparator5.Name = "toolStripSeparator5";
            this.toolStripSeparator5.Size = new System.Drawing.Size(6, 50);
            //
            // zf
            //
            this.zf.AutoSize = false;
            this.zf.Image = ((System.Drawing.Image)(resources.GetObject("zf.Image")));
            this.zf.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.zf.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.zf.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.zf.Name = "zf";
            this.zf.Size = new System.Drawing.Size(36, 47);
            this.zf.Text = "作废";
            this.zf.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.zf.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.zf.Visible = false;
            this.zf.Click += new System.EventHandler(this.zf_Click);
            //
            // fzf
            //
            this.fzf.AutoSize = false;
            this.fzf.Image = ((System.Drawing.Image)(resources.GetObject("fzf.Image")));
            this.fzf.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.fzf.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.fzf.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.fzf.Name = "fzf";
            this.fzf.Size = new System.Drawing.Size(40, 47);
            this.fzf.Text = "反作废";
            this.fzf.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.fzf.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.fzf.Visible = false;
            this.fzf.Click += new System.EventHandler(this.fzf_Click);
            //
            // toolStripSeparator6
            //
            this.toolStripSeparator6.Name = "toolStripSeparator6";
            this.toolStripSeparator6.Size = new System.Drawing.Size(6, 50);
            //
            // sh
            //
            this.sh.AutoSize = false;
            this.sh.Image = ((System.Drawing.Image)(resources.GetObject("sh.Image")));
            this.sh.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.sh.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.sh.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.sh.Name = "sh";
            this.sh.Size = new System.Drawing.Size(36, 47);
            this.sh.Text = "审核";
            this.sh.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.sh.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.sh.Visible = false;
            this.sh.Click += new System.EventHandler(this.sh_Click);
            //
            // qsh
            //
            this.qsh.AutoSize = false;
            this.qsh.Image = ((System.Drawing.Image)(resources.GetObject("qsh.Image")));
            this.qsh.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.qsh.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.qsh.ImageTransparentColor = System.Drawing.Color.Magenta;
            this.qsh.Name = "qsh";
            this.qsh.Size = new System.Drawing.Size(36, 47);
            this.qsh.Text = "反审";
            this.qsh.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.qsh.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.qsh.Visible = false;
            this.qsh.Click += new System.EventHandler(this.qsh_Click);
            //
            // toolStripSeparator4
            //
            this.toolStripSeparator4.Name = "toolStripSeparator4";
            this.toolStripSeparator4.Size = new System.Drawing.Size(6, 50);
            this.toolStripSeparator4.Visible = false;
            //
            // tc
            //
            this.tc.AutoSize = false;
            this.tc.Image = ((System.Drawing.Image)(resources.GetObject("tc.Image")));
            this.tc.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.tc.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.tc.ImageTransparentColor = System.Drawing.Color.White;
            this.tc.Name = "tc";
            this.tc.Size = new System.Drawing.Size(36, 47);
            this.tc.Text = "退出";
            this.tc.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.tc.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.tc.Click += new System.EventHandler(this.tc_Click);
            //
            // toolStripSeparator3
            //
            this.toolStripSeparator3.Name = "toolStripSeparator3";
            this.toolStripSeparator3.Size = new System.Drawing.Size(6, 50);
            //
            // toolStripSeparator9
            //
            this.toolStripSeparator9.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
            this.toolStripSeparator9.Name = "toolStripSeparator9";
            this.toolStripSeparator9.Size = new System.Drawing.Size(6, 50);
            //
            // mrlk
            //
            this.mrlk.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
            this.mrlk.Image = ((System.Drawing.Image)(resources.GetObject("mrlk.Image")));
            this.mrlk.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.mrlk.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.mrlk.ImageTransparentColor = System.Drawing.Color.White;
            this.mrlk.Name = "mrlk";
            this.mrlk.Size = new System.Drawing.Size(60, 47);
            this.mrlk.Text = "默认列宽";
            this.mrlk.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.mrlk.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.mrlk.Click += new System.EventHandler(this.mrlk_Click);
            //
            // toolStripSeparator7
            //
            this.toolStripSeparator7.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
            this.toolStripSeparator7.Name = "toolStripSeparator7";
            this.toolStripSeparator7.Size = new System.Drawing.Size(6, 50);
            //
            // bclk
            //
            this.bclk.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
            this.bclk.Image = ((System.Drawing.Image)(resources.GetObject("bclk.Image")));
            this.bclk.ImageAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.bclk.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None;
            this.bclk.ImageTransparentColor = System.Drawing.Color.White;
            this.bclk.Name = "bclk";
            this.bclk.Size = new System.Drawing.Size(60, 47);
            this.bclk.Text = "保存列宽";
            this.bclk.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
            this.bclk.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText;
            this.bclk.Click += new System.EventHandler(this.bclk_Click);
            //
            // toolStripSeparator8
            //
            this.toolStripSeparator8.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right;
            this.toolStripSeparator8.Name = "toolStripSeparator8";
            this.toolStripSeparator8.Size = new System.Drawing.Size(6, 50);
            //
            // timer1
            //
            this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
            //
            // timer2
            //
            this.timer2.Enabled = true;
            this.timer2.Tick += new System.EventHandler(this.timer2_Tick);
            //
            // grdMain
            //
            this.grdMain.AllowUserToAddRows = false;
            this.grdMain.AllowUserToDeleteRows = false;
            this.grdMain.BackgroundColor = System.Drawing.SystemColors.InactiveCaption;
            this.grdMain.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.grdMain.Dock = System.Windows.Forms.DockStyle.Fill;
            this.grdMain.Location = new System.Drawing.Point(0, 103);
            this.grdMain.Name = "grdMain";
            this.grdMain.ReadOnly = true;
            this.grdMain.RowTemplate.Height = 23;
            this.grdMain.Size = new System.Drawing.Size(1280, 428);
            this.grdMain.TabIndex = 19;
            this.grdMain.Paint += new System.Windows.Forms.PaintEventHandler(this.grdMain_Paint);
            this.grdMain.DoubleClick += new System.EventHandler(this.grdMain_DblClick);
            //
            // grdPrint
            //
            this.grdPrint.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
            this.grdPrint.Location = new System.Drawing.Point(772, 146);
            this.grdPrint.Name = "grdPrint";
            this.grdPrint.RowTemplate.Height = 23;
            this.grdPrint.Size = new System.Drawing.Size(25, 24);
            this.grdPrint.TabIndex = 8;
            this.grdPrint.Visible = false;
            //
            // Kf_AGVRequestBill_FastList
            //
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(1280, 531);
            this.Controls.Add(this.grdMain);
            this.Controls.Add(this.pPic);
            this.Controls.Add(this.Tool);
            this.Controls.Add(this.grdPrint);
            this.Name = "Kf_AGVRequestBill_FastList";
            this.Text = "单据列表";
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            this.Load += new System.EventHandler(this.Kf_AGVRequestBill_FastList_Load);
            this.pPic.ResumeLayout(false);
            this.pPic.PerformLayout();
            this.panel1.ResumeLayout(false);
            this.panel1.PerformLayout();
            this.Tool.ResumeLayout(false);
            this.Tool.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.grdMain)).EndInit();
            ((System.ComponentModel.ISupportInitialize)(this.grdPrint)).EndInit();
            this.ResumeLayout(false);
        }
        #endregion
        private System.Windows.Forms.Panel pPic;
        private System.Windows.Forms.Label lblCaption;
        private System.Windows.Forms.ToolStrip Tool;
        private System.Windows.Forms.ToolStripButton yl;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator2;
        private System.Windows.Forms.ToolStripButton cx;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
        private System.Windows.Forms.ToolStripButton tc;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator3;
        public System.Windows.Forms.Timer timer1;
        private System.Windows.Forms.ToolStripButton sx;
        private System.Windows.Forms.ToolStripButton dj;
        private System.Windows.Forms.ToolStripButton xz;
        private System.Windows.Forms.ToolStripButton sc;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator4;
        private System.Windows.Forms.Timer timer2;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator9;
        private System.Windows.Forms.ToolStripButton mrlk;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator7;
        private System.Windows.Forms.ToolStripButton bclk;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator8;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator5;
        private System.Windows.Forms.ToolStripButton sh;
        private System.Windows.Forms.ToolStripButton qsh;
        private System.Windows.Forms.DataGridView grdMain;
        private System.Windows.Forms.Panel panel1;
        private System.Windows.Forms.Label lbljl;
        private System.Windows.Forms.Label lbldj;
        private System.Windows.Forms.DataGridView grdPrint;
        private System.Windows.Forms.ToolStripButton dy;
        private System.Windows.Forms.ToolStripButton dy2;
        private System.Windows.Forms.ToolStripButton yc;
        private System.Windows.Forms.ToolStripButton fzf;
        private System.Windows.Forms.ToolStripButton zf;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator6;
        private System.Windows.Forms.ToolStripSeparator toolStripSeparator10;
        private System.Windows.Forms.ToolStripButton ps;
        private System.Windows.Forms.ToolStripButton dc;
    }
}
SCM/ÌõÂë´òÓ¡/Kf_AGVRequestBill_FastList.resx
New file
Diff too large