if (dsUser != null && dsUser.Tables[0].Rows.Count > 0)
{
USERINFO userinfo = new USERINFO();
USERINFODETAIL[] userdetails = new USERINFODETAIL[dsUser.Tables[0].Rows.Count];
for (int i = 0; i < dsUser.Tables[0].Rows.Count; i++)
{
USERINFODETAIL userinfodetail = new USERINFODETAIL();
userinfodetail.ActiveUser = "N"; //dsUser.Tables[0].Rows[i]["ActiveUser"].ToString();
userinfodetail.BirthDay = dsUser.Tables[0].Rows[i]["BirthDay"].ToString();
userinfodetail.CurrentAddressM = dsUser.Tables[0].Rows[i]["CurrentAddress"].ToString();
userinfodetail.CurrentZipcode = dsUser.Tables[0].Rows[i]["CurrentZipcode"].ToString();
userinfodetail.DeptCode = dsUser.Tables[0].Rows[i]["DeptCode"].ToString();
userinfodetail.DeptName = dsUser.Tables[0].Rows[i]["DeptName"].ToString();
userinfodetail.empCode = dsUser.Tables[0].Rows[i]["empCode"].ToString();
userinfodetail.empName = dsUser.Tables[0].Rows[i]["empName"].ToString();
userinfodetail.Gender = dsUser.Tables[0].Rows[i]["Gender"].ToString();
userinfodetail.JobDuty = dsUser.Tables[0].Rows[i]["JobDuty"].ToString();
userinfodetail.JobDutyName = dsUser.Tables[0].Rows[i]["JobDutyName"].ToString();
userinfodetail.JobPosition = dsUser.Tables[0].Rows[i]["JobPosition"].ToString();
userinfodetail.JobPositionName = dsUser.Tables[0].Rows[i]["JobPositionName"].ToString();
userinfodetail.LoginID = dsUser.Tables[0].Rows[i]["LoginID"].ToString();
userinfodetail.MailID = dsUser.Tables[0].Rows[i]["MailID"].ToString();
userinfodetail.MobilNP = dsUser.Tables[0].Rows[i]["MobilNP"].ToString();
userinfodetail.OfficePhone = dsUser.Tables[0].Rows[i]["OfficePhone"].ToString();
userinfodetail.PRIMARYYN = dsUser.Tables[0].Rows[i]["PRIMARYYN"].ToString();
userdetails[i] = userinfodetail;
}
userinfo.arrDatas = userdetails;
SetUserInfo setuserinfo = new SetUserInfo();
setuserinfo.Timeout = 1000000;
setuserinfo.LagacySetUserInfo(userinfo);
}
|