Ejemplo n.º 1
0
        internal void OpentApplyForm()
        {
            if (this.m_dtOrderBooking == null)
            {
                return;
            }

            int currentRow = this.m_objViewer.dw_seach.CurrentRow;

            if (currentRow <= 0)
            {
                return;
            }


            string strOrderId = "";

            strOrderId = this.m_objViewer.dw_seach.GetItemString(currentRow, "t_opr_bih_order_booking_orderid_chr").ToString();

            if (strOrderId == "")
            {
                return;
            }

            string strApplyId = "";
            long   r          = this.m_objDomain.GetApplyIdByOrderId(strOrderId, out strApplyId);

            if (r > 0 && strApplyId != "")
            {
                com.digitalwave.GLS_WS.clsApplyForm objfrm = new com.digitalwave.GLS_WS.clsApplyForm();
                objfrm.OpenForm(strApplyId);
                return;
            }
        }
Ejemplo n.º 2
0
        internal void OpentApplyForm()
        {
            //Sybase.DataWindow.SelectedData sData = this.m_objViewer.dw_seach.SelectedData;
            if (this.m_objViewer.m_dgvBookingList.SelectedRows == null || this.m_objViewer.m_dgvBookingList.SelectedRows.Count == 0)
            {
                return;
            }

            //int currentRow = 0;
            string strOrderId = "";

            //for (int i = 1; i < this.m_objViewer.dw_seach.RowCount + 1; i++)
            //{
            //if (this.m_objViewer.dw_seach.IsSelected(i))
            //{
            strOrderId = this.m_objViewer.m_dgvBookingList.SelectedRows[0].Cells["orderId"].Value.ToString();

            if (strOrderId == "")
            {
                return;
            }

            string strApplyId = "";
            long   r          = this.m_objDomain.GetApplyIdByOrderId(strOrderId, out strApplyId);

            if (r > 0 && strApplyId != "")
            {
                com.digitalwave.GLS_WS.clsApplyForm objfrm = new com.digitalwave.GLS_WS.clsApplyForm();
                objfrm.OpenForm(strApplyId);
                return;
            }
            //}
            //}
        }
Ejemplo n.º 3
0
 private void button2_Click(object sender, System.EventArgs e)
 {
     com.digitalwave.GLS_WS.clsApplyForm m = new com.digitalwave.GLS_WS.clsApplyForm();
     m.OpenForm(null);
 }