1. Apply for Leave: Code Behind (Run Button Click) 

VB .NET:

  1.         Dim controller As New RecordLeaveController()
  2.         Dim vdb As New RecordLeave()
  3.         vdb.LeaveInfo.AddLeaveInfoRow(Convert.ToDateTime(TextBox1.Text), Convert.ToInt32(TextBox2.Text), String.Empty)
  4.         vdb = controller.FillLeaveData(Request.Params("empId"), vdb)
  5.         Dim row As RecordLeave.LeaveInfoRow = CType(vdb.LeaveInfo.Rows(0), RecordLeave.LeaveInfoRow)
  6.         Label2.Text = row.Id
  7.         Label6.Text = row.WorkflowID

Last edited Jun 25, 2012 at 12:53 PM by cathysung, version 2

Comments

No comments yet.