protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { var patientId = Convert.ToInt32(DTRequest.GetQueryString("patientId")); patietnt = Med_BLL.BLL_Patient.GetPatientById(patientId); } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { var patientId = Convert.ToInt32(DTRequest.GetQueryString("patientId")); patient = Med_BLL.BLL_Patient.GetPatientById(patientId); int typeId = Convert.ToInt32(DTRequest.GetQueryString("typeId")); money = (typeId == 1 ? patient.CliMoney : patient.PhaMoney); } }