Beispiel #1
0
        /// <summary>
        /// 查看商品详细信息 未发送列表
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnView_Click(object sender, EventArgs e)
        {
            if (this.gvReturnListNoSend.RowCount == 0)
            {
                return;
            }
            DataRow dr = this.gvReturnListNoSend.GetDataRow(this.gvReturnListNoSend.FocusedRowHandle);

            string strProjectProductID = dr["PROJECT_PRODUCT_ID"].ToString();
            string strSpec             = dr["SPEC"].ToString();
            string strModel            = dr["MODEL"].ToString();

            ViewOrdProductForm frm = new ViewOrdProductForm(strProjectProductID, strSpec, strModel);

            frm.ShowDialog();
        }
Beispiel #2
0
        /// <summary>
        /// 商品查看事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnView_Click(object sender, EventArgs e)
        {
            if (this.gVStockUpItem.RowCount == 0)
            {
                return;
            }

            //string strProjectProductID = GetGridViewColValue(this.gVStockUpItem, "PROJECT_PROD_ID");
            DataRow dr = this.gVStockUpItem.GetDataRow(this.gVStockUpItem.FocusedRowHandle);

            string strProjectProductID = dr["PROJECT_PROD_ID"].ToString();
            string strSpec             = dr["SPEC"].ToString();
            string strModel            = dr["MODEL"].ToString();

            ViewOrdProductForm frm = new ViewOrdProductForm(strProjectProductID, strSpec, strModel);

            frm.ShowDialog();
        }
        /// <summary>
        /// 查看商品详细信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnViewItem_Click(object sender, EventArgs e)
        {
            DataRow dr = null;

            string strDataProductId = string.Empty;

            switch (this.xtraTabControl1.SelectedTabPageIndex)
            {
            case 0:    //未到货
                if (this.gVNoSendList.RowCount == 0)
                {
                    return;
                }

                dr = this.gVNoSendList.GetDataRow(this.gVNoSendList.FocusedRowHandle);
                break;

            case 1:    //已到货
                if (this.gVSendList.RowCount == 0)
                {
                    return;
                }

                dr = this.gVSendList.GetDataRow(this.gVSendList.FocusedRowHandle);
                break;

            case 2:    //明细表
                if (this.gvInvoiceItem.RowCount == 0)
                {
                    return;
                }

                dr = this.gvInvoiceItem.GetDataRow(this.gvInvoiceItem.FocusedRowHandle);
                break;
            }

            string strProjectProductID = dr["PROJECT_PRODUCT_ID"].ToString();
            string strSpec             = dr["SPEC"].ToString();
            string strModel            = dr["MODEL"].ToString();

            ViewOrdProductForm frm = new ViewOrdProductForm(strProjectProductID, strSpec, strModel);

            frm.ShowDialog();
        }