protected void btnViewReport_Click(object sender, EventArgs e) { if (this.grdEmployee.SelectedIndex > -1) { ATTEmployeePosting empPosting = BLLEmployeePosting.GetEmployeeCurrentPosting(int.Parse(Session["EmpID"].ToString())); int DesID = (int)empPosting.DesID; Session["DesID"] = DesID; Print(int.Parse(Session["EmpID"].ToString()), DesID); } else { this.lblStatusMessage.Text = "कर्मचारी छान्नुहोस्"; this.programmaticModalPopup.Show(); } }
protected void grdEmployee_RowCommand(object sender, GridViewCommandEventArgs e) { try { if (e.CommandName == "Print") { //GetConnection Conn = new GetConnection(); //OracleConnection DBConn; //DBConn = Conn.GetDbConn(Module.PMS); //object obj = DBConn; int empID = int.Parse(e.CommandArgument.ToString()); ATTEmployeePosting empPosting = BLLEmployeePosting.GetEmployeeCurrentPosting(empID); int desID = (int)empPosting.DesID; Print(empID, desID); } } catch (Exception ex) { throw ex; } }