Beispiel #1
0
        /// <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);
        }
Beispiel #2
0
        /// <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);
            }
        }