示例#1
0
 private void _SelectUpdateWebLink()
 {
     try
     {
         int k = gridView1.SelectedRowsCount;
         if (k > 0)
         {
             int RowHandle = gridView1.GetSelectedRows()[k - 1];
             if (RowHandle >= 0)
             {
                 long iDDT = long.Parse(gridView1.GetRowCellValue(RowHandle, colID).ToString());
                 WebUp temp = WebUp.Get(iDDT);
                 if (temp != null)
                 {
                     frmWebLink frm = new frmWebLink(_Type,_TypePage);
                     frm._cus = temp;
                     if (frm.ShowDialog() == DialogResult.OK)
                     {
                         _LoadDSWebLink();
                     }
                 }
             }
         }
     }
     catch { }
 }
示例#2
0
 private void _SelectUpdateWebLink()
 {
     try
     {
         int k = gridView1.SelectedRowsCount;
         if (k > 0)
         {
             int RowHandle = gridView1.GetSelectedRows()[k - 1];
             if (RowHandle >= 0)
             {
                 long  iDDT = long.Parse(gridView1.GetRowCellValue(RowHandle, colID).ToString());
                 WebUp temp = WebUp.Get(iDDT);
                 if (temp != null)
                 {
                     frmWebLink frm = new frmWebLink(_Type, _TypePage);
                     frm._cus = temp;
                     if (frm.ShowDialog() == DialogResult.OK)
                     {
                         _LoadDSWebLink();
                     }
                 }
             }
         }
     }
     catch { }
 }
示例#3
0
 private void gridView2_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         int k = gridView2.SelectedRowsCount;
         if (k > 0)
         {
             int RowHandle = gridView2.GetSelectedRows()[k - 1];
             if (RowHandle >= 0)
             {
                 long  iDDT = long.Parse(gridView2.GetRowCellValue(RowHandle, colID).ToString());
                 WebUp temp = WebUp.Get(iDDT);
                 if (temp != null)
                 {
                     frmWebLink frm = new frmWebLink(NumCode.UPFORUM, NumCode.FORUM);
                     frm._cus = temp;
                     if (frm.ShowDialog() == DialogResult.OK)
                     {
                         _LoadDSWebLink();
                     }
                 }
             }
         }
     }
     catch { }
 }
示例#4
0
        private void btnAdd_Click(object sender, EventArgs e)
        {
            frmWebLink frm = new frmWebLink(NumCode.UPFORUM, NumCode.FORUM);

            frm.ShowDialog();
            _LoadDSWebLink();
        }
示例#5
0
        private void btnThemMoi_Click(object sender, EventArgs e)
        {
            frmWebLink frm = new frmWebLink(_Type, _TypePage);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                _LoadDSWebLink();
            }
        }
示例#6
0
        private void btnThemMoi_Click(object sender, EventArgs e)
        {

            frmWebLink frm = new frmWebLink(_Type,_TypePage);
            if (frm.ShowDialog() == DialogResult.OK)
            {
                _LoadDSWebLink();
            }
        }
示例#7
0
 private void gridView2_DoubleClick(object sender, EventArgs e)
 {
     try
     {
         
         int k = gridView2.SelectedRowsCount;
         if (k > 0)
         {
             int RowHandle = gridView2.GetSelectedRows()[k - 1];
             if (RowHandle >= 0)
             {
                 long iDDT = long.Parse(gridView2.GetRowCellValue(RowHandle, colID).ToString());
                 WebUp temp = WebUp.Get(iDDT);
                 if (temp != null)
                 {
                     frmWebLink frm = new frmWebLink(NumCode.UPFORUM,NumCode.FORUM);
                     frm._cus = temp;
                     if (frm.ShowDialog() == DialogResult.OK)
                     {
                         _LoadDSWebLink();
                     }
                 }
             }
         }
     }
     catch { }
 }
示例#8
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     frmWebLink frm = new frmWebLink(NumCode.UPFORUM,NumCode.FORUM);
     frm.ShowDialog();
     _LoadDSWebLink();
 }
示例#9
0
 private void btnAdd_Click(object sender, EventArgs e)
 {
     frmWebLink frm = new frmWebLink(NumCode.UPWEB,NumCode.WEB);
     frm.ShowDialog();
     if (lookUpEditPage.EditValue!=null)
         _LoadDSWebLink(lookUpEditPage.Text);
 }