示例#1
0
 /// <summary>
 /// 双击列表查看明细事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void gvYTPurchaseOrderList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex > -1 && e.ColumnIndex > -1)//双击表头或列头时不起作用
     {
         string   order_status        = this.gvYTPurchaseOrderList.CurrentRow.Cells["order_status"].Value.ToString();
         string   order_Id            = this.gvYTPurchaseOrderList.CurrentRow.Cells[0].Value.ToString();
         UCYTView UCPurchaseOrderView = new UCYTView(order_Id, this);
         base.addUserControl(UCPurchaseOrderView, "宇通采购订单-查看", "UCPurchaseOrderView" + order_Id + "", this.Tag.ToString(), this.Name);
     }
 }
示例#2
0
 /// <summary>
 /// 双击列表查看明细事件
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void gvYTPurchaseOrderList_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.RowIndex > -1 && e.ColumnIndex > -1)//双击表头或列头时不起作用   
     {
         string order_status = this.gvYTPurchaseOrderList.CurrentRow.Cells["order_status"].Value.ToString();
         string order_Id = this.gvYTPurchaseOrderList.CurrentRow.Cells[0].Value.ToString();
         UCYTView UCPurchaseOrderView = new UCYTView(order_Id, 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);
     }
 }