private void btnAdd_Click(object sender, EventArgs e)
        {
            if (!CheckDateDetail())
            {
                return;
            }

            List <View_Business_PurchasingMG_PartsBelongPriovderChangeDetail> listTemp =
                (customDataGridView1.DataSource as BindingCollection <View_Business_PurchasingMG_PartsBelongPriovderChangeDetail>).ToList();

            View_Business_PurchasingMG_PartsBelongPriovderChangeDetail tempInfo =
                new View_Business_PurchasingMG_PartsBelongPriovderChangeDetail();

            tempInfo.单据号   = txtBillNo.Text;
            tempInfo.供应商等级 = cmbProviderLV.Text;
            tempInfo.规格    = txtSpec.Text;
            tempInfo.零件类型  = txtPartType.Text;
            tempInfo.难度等级  = cmbDiffcultyLV.Text;
            tempInfo.说明    = txtExplain.Text;
            tempInfo.图号型号  = txtGoodsCode.Text;
            tempInfo.物品ID  = Convert.ToInt32(txtGoodsCode.Tag);
            tempInfo.物品名称  = txtGoodsName.Text;

            listTemp.Add(tempInfo);
            RefreshDataGridView(listTemp);
        }
        private bool customForm_PanelGetDateInfo(CE_FlowOperationType flowOperationType)
        {
            try
            {
                if (!CheckData())
                {
                    return(false);
                }

                m_lnqBillInfo = new Business_PurchasingMG_PartsBelongPriovderChange();

                m_lnqBillInfo.BillNo       = txtBillNo.Text;
                m_lnqBillInfo.ChangeReason = txtChangeReason.Text;
                m_lnqBillInfo.ChangeType   = cmbChangeType.Text;
                m_lnqBillInfo.Provider     = txtProvider.Text;

                List <View_Business_PurchasingMG_PartsBelongPriovderChangeDetail> listTemp =
                    new List <View_Business_PurchasingMG_PartsBelongPriovderChangeDetail>();

                foreach (DataGridViewRow dr in customDataGridView1.Rows)
                {
                    View_Business_PurchasingMG_PartsBelongPriovderChangeDetail tempInfo =
                        new View_Business_PurchasingMG_PartsBelongPriovderChangeDetail();

                    tempInfo.单据号 = dr.Cells["单据号"].Value.ToString();

                    tempInfo.规格    = dr.Cells["规格"].Value.ToString();
                    tempInfo.零件类型  = dr.Cells["零件类型"].Value.ToString();
                    tempInfo.供应商等级 = dr.Cells["供应商等级"].Value.ToString();
                    tempInfo.难度等级  = dr.Cells["难度等级"].Value.ToString();
                    tempInfo.说明    = dr.Cells["说明"].Value.ToString();
                    tempInfo.图号型号  = dr.Cells["图号型号"].Value.ToString();
                    tempInfo.物品ID  = Convert.ToInt32(dr.Cells["物品ID"].Value);
                    tempInfo.物品名称  = dr.Cells["物品名称"].Value.ToString();

                    listTemp.Add(tempInfo);
                }

                this.FlowInfo_BillNo = txtBillNo.Text;
                this.ResultInfo      = listTemp;

                this.ResultList = new List <object>();

                this.ResultList.Add(m_lnqBillInfo);
                this.ResultList.Add(flowOperationType);

                return(true);
            }
            catch (Exception ex)
            {
                MessageDialog.ShowPromptMessage(ex.Message);
                return(false);
            }
        }