public frmScanCheckSheet(frmCheckSheet frm)
        {
            InitializeComponent();
            //
            Helper.GlobalData.InitForm(this);
            //
            this.frm = frm;
            //
            tb = new DataTable();
            tb.Columns.Add("item_no");
            tb.Columns.Add("item_subno");
            tb.Columns.Add("barcode");
            tb.Columns.Add("item_name");
            tb.Columns.Add("unit_no");
            tb.Columns.Add("item_size");
            tb.Columns.Add("item_pack");
            tb.Columns.Add("stock_qty", typeof(decimal));
            tb.Columns.Add("real_qty", typeof(decimal));
            tb.Columns.Add("packqty", typeof(decimal));
            tb.Columns.Add("sgqty", typeof(decimal));
            tb.Columns.Add("balance_qty", typeof(decimal));
            tb.Columns.Add("in_price", typeof(decimal));
            tb.Columns.Add("real_amount", typeof(decimal));

            editGrid1.AddColumn("item_subno", "货号", "", 100, 1, "", false);
            editGrid1.AddColumn("barcode", "条码", "", 120, 1, "", false);
            editGrid1.AddColumn("item_name", "商品名称", "", 150, 1, "", false);
            editGrid1.AddColumn("unit_no", "单位", "", 60, 2, "", false);
            editGrid1.AddColumn("item_size", "规格", "", 80, 1, "", false);
            editGrid1.AddColumn("stock_qty", "系统库存", "", 100, 3, "0.00", false);
            editGrid1.AddColumn("real_qty", "实际盘点数量", "", 100, 3, "0.00", false);
            editGrid1.AddColumn("item_pack", "包装数量", "", 100, 3, "0.00", false);
            editGrid1.AddColumn("packqty", "箱数", "", 100, 3, "0.00", false);
            editGrid1.AddColumn("sgqty", "零数", "", 100, 3, "0.00", false);
            editGrid1.AddColumn("balance_qty", "盈亏数量", "", 100, 3, "0.00", false);
            editGrid1.AddColumn("in_price", "成本价", "", 100, 3, "0.00", false);
            editGrid1.AddColumn("real_amount", "盈亏金额", "", 100, 3, "0.00", false);

            editGrid1.SetTotalColumn("stock_qty,real_qty,packqty,sgqty,balance_qty,real_amount");//合计项
            editGrid1.DataSource = tb;

            //
            try
            {
                System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor;
                //
                IBLL.ICommonBLL bll2 = new BLL.CommonBLL();
                tbgoods = bll2.GetGoodsList();

                editGrid1.Bind("item_subno", tbgoods, 500, 200, "item_subno", "item_subno:货号:80,item_name:品名:150," +
                               "barcode:条码:100,item_subname:拼音码:80", "item_no->item_no,item_subno->item_subno,barcode->barcode," +
                               "item_name->item_name,unit_no->unit_no,item_size->item_size,item_pack->item_pack,price->in_price");

                editGrid1.Bind("barcode", tbgoods, 500, 200, "barcode", "item_subno:货号:80,item_name:品名:150," +
                               "barcode:条码:100,item_subname:拼音码:80", "item_no->item_no,item_subno->item_subno,barcode->barcode," +
                               "item_name->item_name,unit_no->unit_no,item_size->item_size,item_pack->item_pack,price->in_price");
            }
            catch (Exception ex)
            {
                MsgForm.ShowFrom(ex);
                Helper.LogHelper.writeLog("frmScanCheckSheet()", ex.ToString());
            }
            finally
            {
                System.Windows.Forms.Cursor.Current = System.Windows.Forms.Cursors.Default;
            }
        }