/// <summary> /// 到货操作 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnViewReceiveList_Click(object sender, EventArgs e) { //判断是否为空数据集 if (this.gvInvoiceList.RowCount == 0) { return; } //发货单ID string strInvoiceID = GetGridViewColValue(this.gvInvoiceList, "ID"); //发货单状态 string strState = GetGridViewColValue(this.gvInvoiceList, "STATE"); if (strState.Equals("4"))//作废状态 { XtraMessageBox.Show("发货单已作废,不能作到到货操作!", Constant.MsgTitle, MessageBoxButtons.OK, MessageBoxIcon.Information); return; } OrdInvoiceItemForm frm = new OrdInvoiceItemForm(strInvoiceID, false); frm.ShowDialog(); if (frm.EditFlag) { DataBind(); Filter(); } }
/// <summary> /// 查看事件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnViewItem_Click(object sender, EventArgs e) { //判断是否为空数据集 if (this.gvInvoiceList.RowCount == 0) { return; } //发货单ID string strInvoiceID = GetGridViewColValue(this.gvInvoiceList, "ID"); OrdInvoiceItemForm frm = new OrdInvoiceItemForm(strInvoiceID, true); frm.ShowDialog(); }