示例#1
0
 private void gvPurchaseOrderList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex > -1 && e.ColumnIndex > -1)//双击表头或列头时不起作用
     {
         string order_status = this.gvPurchaseOrderList.CurrentRow.Cells["order_status"].Value.ToString();
         string order_Id     = this.gvPurchaseOrderList.CurrentRow.Cells[0].Value.ToString();
         UCPurchaseOrderView UCPurchaseOrderView = new UCPurchaseOrderView(order_Id, order_status, this);
         base.addUserControl(UCPurchaseOrderView, "采购订单-查看", "UCPurchaseOrderView" + order_Id + "", this.Tag.ToString(), this.Name);
     }
 }
 /// <summary>
 /// 打开采购订单
 /// </summary>
 void OpenDocument()
 {
     if (dgvReport.CurrentRow == null)
     {
         return;
     }
     string order_id = dgvReport.CurrentRow.Cells[colID.Name].Value.ToString();
     if (order_id.Length == 0)
     {
         return;
     }
     UCPurchaseOrderView UCPurchaseOrderView = new UCPurchaseOrderView(order_id, ((int)DataSources.EnumAuditStatus.SUBMIT).ToString(), null);
     base.addUserControl(UCPurchaseOrderView, "采购订单-查看", "UCPurchaseOrderView" + order_id + "", this.Tag.ToString(), this.Name);
 }
 private void gvPurchaseOrderList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex > -1 && e.ColumnIndex > -1)//双击表头或列头时不起作用   
     {
         string order_status = this.gvPurchaseOrderList.CurrentRow.Cells["order_status"].Value.ToString();
         string order_Id = this.gvPurchaseOrderList.CurrentRow.Cells["order_id"].Value.ToString();
         UCPurchaseOrderView UCPurchaseOrderView = new UCPurchaseOrderView(order_Id,order_status, this);
         base.addUserControl(UCPurchaseOrderView, "采购订单-查看", "UCPurchaseOrderView" + order_Id + "", this.Tag.ToString(), this.Name);
     }
 }
 /// <summary>
 /// 打开采购订单
 /// </summary>
 void OpenDocument()
 {
     if (dgvReport.CurrentRow == null)
     {
         return;
     }
     string order_id = dgvReport.CurrentRow.Cells[colID.Name].Value.ToString();
     string type = CommonCtrl.IsNullToString(dgvReport.CurrentRow.Cells[colType.Name].Value);
     if (order_id.Length == 0)
     {
         return;
     }
     if (type == "1")
     {
         UCPurchaseOrderView UCPurchaseOrderView = new UCPurchaseOrderView(order_id, ((int)DataSources.EnumAuditStatus.SUBMIT).ToString(), null);
         base.addUserControl(UCPurchaseOrderView, "采购订单-查看", "UCPurchaseOrderView" + order_id + "", this.Tag.ToString(), this.Name);
     }
     else if (type == "2")
     {
         UCYTView ucYtView = new UCYTView(order_id, null);
         base.addUserControl(ucYtView, "宇通采购订单-查看", "UCPurchaseOrderView" + order_id, this.Tag.ToString(), this.Name);
     }
 }