private void LoadDataByID(string sBranchID) { Branch oBranch = new Branch(sBranchID); BranchDAL oBranchDAL = new BranchDAL(); Result oResult = new Result(); oResult = oBranchDAL.LoadByID(oBranch); if (oResult.Status) { oBranch = (Branch)oResult.Return; txtBranchID.Text = oBranch.BranchID.Trim(); txtBranchID.ReadOnly = true; txtBranchName.Text = oBranch.BranchName; txtBdBankCode.Text = oBranch.BbCode; txtAddress.Text = oBranch.Address; txtZipCode.Text = oBranch.ZipCode; txtPhoneNumber.Text = oBranch.Phone; txtEmailID.Text = oBranch.Email; txtFaxNumber.Text = oBranch.Fax; if (string.IsNullOrEmpty(hdDataType.Value)) { //When Loading from Approver End UserDetails userDetails = ucUserDet.UserDetail; userDetails.MakerID = oBranch.UserDetails.MakerID; userDetails.MakeDate = oBranch.UserDetails.MakeDate; ucUserDet.UserDetail = userDetails; } else if (hdDataType.Value.Equals("T")) { //When loading from temp table UserDetails userDetails = ucUserDet.UserDetail; userDetails.CheckDate = oBranch.UserDetails.CheckDate; userDetails.CheckerID = oBranch.UserDetails.CheckerID; userDetails.CheckDate = oBranch.UserDetails.CheckDate; userDetails.CheckerComment = oBranch.UserDetails.CheckerComment; ucUserDet.UserDetail = userDetails; } DDListUtil.Assign(ddlCountryName, oBranch.Country.ToString()); hdBranchID.Value = sBranchID; } else { ucMessage.OpenMessage(Constants.MSG_ERROR_NOT_FOUND, Constants.MSG_TYPE_ERROR); } }