示例#1
0
 private void openManageForm(string _Edit)
 {
     if (this.dataGridView1 != null && this.dataGridView1.Rows.Count > 0)
     {
         if (dataGridView1.CurrentRow != null)
         {
             string          _Company_Id    = "";
             string          _Collection_Id = "";
             DataGridViewRow _dr            = this.dataGridView1.Rows[dataGridView1.CurrentRow.Index];
             if (_dr != null)
             {
                 _Company_Id    = string.IsNullOrEmpty((_dr.Cells["Company_Id"].Value.ToString()).ToString()) ? "" : (_dr.Cells["Company_Id"].Value.ToString()).ToString();
                 _Collection_Id = string.IsNullOrEmpty((_dr.Cells["Collection_Id"].Value.ToString()).ToString()) ? "" : (_dr.Cells["Collection_Id"].Value.ToString()).ToString();
             }
             RequestCollectionOrderManage _roleMge = new RequestCollectionOrderManage();
             _roleMge.Edit             = _Edit;
             _roleMge.BilCollection_Id = _Collection_Id;
             _roleMge.CompanyId        = _Company_Id;
             if (_roleMge.ShowDialog() != DialogResult.OK)
             {
                 string _where = " Where 1=1 and Company_Id='" + LoginInfo._Usr_Company + "'";
                 QueryData(_where);
             }
         }
     }
 }
示例#2
0
        private void BtnAdd_Click(object sender, EventArgs e)
        {
            RequestCollectionOrderManage _Manage = new RequestCollectionOrderManage();

            _Manage.Edit = "ADD";
            if (_Manage.ShowDialog() != DialogResult.OK)
            {
                string _where = " Where 1=1 and Company_Id='" + LoginInfo._Usr_Company + "'";
                QueryData(_where);
            }
        }