示例#1
0
 private void button3_Click(object sender, EventArgs e)
 {
     userrights = conn.getdataset("Select * from UserRights where isactive=1 and uid='" + Master.userid + "'");
     if (userrights.Rows.Count > 0)
     {
         if (userrights.Rows[41]["a"].ToString() == "True")
         {
             hsnreport_GSTR2_ gst = new hsnreport_GSTR2_(master, tabControl);
             master.AddNewTab(gst);
         }
         else
         {
             MessageBox.Show("You Don't have Permission For View");
             return;
         }
     }
 }
示例#2
0
        private void button3_Click(object sender, EventArgs e)
        {
            hsnreport_GSTR2_ gst = new hsnreport_GSTR2_(master, tabControl);

            master.AddNewTab(gst);
        }