public static decimal WMGetTotalQty() { iPartRequestClient objService = new iPartRequestClient(); decimal tot = 0; try { CustomProfile profile = CustomProfile.GetProfile(); POR_SP_GetPartDetail_ForRequest_Result PartRequest = new POR_SP_GetPartDetail_ForRequest_Result(); tot = objService.GetTotalQTYFromTempData(HttpContext.Current.Session.SessionID, ObjectName, profile.Personal.UserID.ToString(), profile.DBConnection._constr); } catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, "PartRequestEntry.aspx", "WMGetTotalQty"); } finally { objService.Close(); } return(tot); }