private void but_new_Click(object sender, EventArgs e)
        {
            HCSCM_orderNum_manage_new hcscm = new HCSCM_orderNum_manage_new(null);

            hcscm.ShowDialog();
            Loaddata(null);
            if (dgv_01.Rows.Count > 0)
            {
                dgv_01.CurrentRow = dgv_01.Rows[dgv_01.RowCount - 1];
            }
        }
        private void but_edit_Click(object sender, EventArgs e)
        {
            if (dgv_01.SelectedRows.Count > 0)
            {
                int        selectedIndex = dgv_01.Rows.IndexOf(dgv_01.SelectedRows[0]);
                SortedList slindata      = new SortedList();
                slindata.Add("id", dgv_01.SelectedRows[0].Cells["id"].Value);
                slindata.Add("ca_name", dgv_01.SelectedRows[0].Cells["ca_name"].Value);
                slindata.Add("bar_code", dgv_01.SelectedRows[0].Cells["bar_code"].Value);
                slindata.Add("costbar_codename", dgv_01.SelectedRows[0].Cells["costbar_codename"].Value);//值是barcode
                slindata.Add("location_name", dgv_01.SelectedRows[0].Cells["location_name"].Value);
                slindata.Add("customer_barcodename", dgv_01.SelectedRows[0].Cells["customer_barcodename"].Value);
                slindata.Add("cre_date", dgv_01.SelectedRows[0].Cells["cre_date"].Value);
                slindata.Add("remark", dgv_01.SelectedRows[0].Cells["remark"].Value);

                HCSCM_orderNum_manage_new hcsm = new HCSCM_orderNum_manage_new(slindata);
                //获取一个值,指是否在Windows任务栏中显示窗体。
                hcsm.ShowInTaskbar = false;
                hcsm.ShowDialog();
                if (tb_select.Text == string.Empty)
                {
                    if (cb_customer.Text == "----所有----")
                    {
                        Loaddata(null);
                    }
                    else
                    {
                        Loaddata(Sl_customer.GetKey(Sl_customer.IndexOfValue(cb_customer.Text.ToString())).ToString());
                    }
                }
                else
                {
                    GetData();
                }
                if (dgv_01.Rows.Count > selectedIndex)
                {
                    dgv_01.CurrentRow = dgv_01.Rows[selectedIndex];
                }
            }
            else
            {
                MessageBox.Show(PromptMessageXmlHelper.Instance.GetPromptMessage("choicechange", EnumPromptMessage.warning, new string[] { "修改", "订单号" }), "提示信息", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }
        }