private void Save() { dataRow["Price"] = nudPrice.Value; dataRow["Count"] = nudCount.Value; dataRow["Series"] = tbSeries.Text; dataRow["ExpiredDate"] = DateTimePickerUtils.GetDateTimeObject(dpExpiredDate); }
private void StoreProductForm_Load(object sender, EventArgs e) { if (DesignMode) { return; } lblProductInfo.Text = (string)dataRow["Name"]; nudPrice.Value = (decimal)dataRow["Price"]; nudCount.Value = (decimal)dataRow["Count"]; tbSeries.Text = (string)dataRow["Series"]; DateTimePickerUtils.Init(dpExpiredDate, dataRow["ExpiredDate"]); /* tbMedicament.Text=dataRow["ProductName"].ToString(); * using (GmConnection conn = App.CreateConnection()) * { * ComboBoxUtils.Fill(cbStoreProductType,conn,"select Id, Name from StoreProductTypes order by Name",(int)dataRow["StoreProductTypeId"]); * } * dpExpiredDate.Value = (DateTime)dataRow["StartDate"]; * dtpEndDate.Value=(DateTime)dataRow["ExpiredDate"]; * nudDose.Value = (decimal)dataRow["Dose"]; * nudMultiplicity.Value = (int)dataRow["Multiplicity"]; * lblUnit.Text = dataRow["BaseUnitName"].ToString(); * dpExpiredDate.ShowUpDown = true; * dtpEndDate.ShowUpDown = true; * nudDuration.Value = (int)dataRow["Duration"]; * chkReanimation.Checked = (bool)dataRow["ReanimationFlag"]; */ }
private void Save() { patientConsultation.requestDate = DateTimePickerUtils.GetDateTime(dtpRequestDate); patientConsultation.executionDate = DateTimePickerUtils.GetDateTime(dtpExecutionDate); ucHandbooksInfo.Save(); using (GmConnection conn = App.CreateConnection()) { patientConsultation.Save(conn); } }
private void PatientConsultationForm_Load(object sender, EventArgs e) { if (DesignMode) { return; } DateTimePickerUtils.Init(dtpRequestDate, patientConsultation.requestDate); DateTimePickerUtils.Init(dtpExecutionDate, patientConsultation.executionDate); ucHandbooksInfo.Init(patientConsultation.consultationData, App.Config[HandbookGroupId.ConsultationData]); }
private void Save() { analysis.requestDate = DateTimePickerUtils.GetDateTime(dtpRequestDate); analysis.executionDate = DateTimePickerUtils.GetDateTime(dtpExecutionDate); ucHandbooksInfo.Save(); /* using (GmConnection conn = App.CreateConnection()) * { * analysis.Save(conn); * }*/ }
private void Save() { using (WaitCursor wc = new WaitCursor()) { patient.dischargeDate = DateTimePickerUtils.GetDateTime(dtpDischargeDate); using (GmConnection conn = App.CreateConnection()) { ucHandbooksInfo.Save(); patient.SaveDischargeData(conn); } } }
public bool Save() { if (!loaded) { return(false); } patientIdentification.birthday = DateTimePickerUtils.GetDateTime(dtpBirthday); patientIdentification.gender = (GenderId)cbGender.SelectedValue; patientIdentification.middleName = StringUtils.TrimAndCap(tbMiddleName.Text); patientIdentification.name = StringUtils.TrimAndCap(tbName.Text); patientIdentification.surname = StringUtils.TrimAndCap(tbSurname.Text); ucHandbooksInfo.Save(); return(ReflectionUtils.HasData(patientIdentification)); }
private void PatientIdentificationUserControl_Load(object sender, EventArgs e) { if (base.DesignMode) { return; } ucHandbooksInfo.Init(patientIdentification.identificationData, App.Config[HandbookGroupId.PatientIdentification]); using (GmConnection conn = App.CreateConnection()) { cbGender.Fill(conn, "select Id, Name from Genders", (int)patientIdentification.gender, ""); } DateTimePickerUtils.Init(dtpBirthday, patientIdentification.birthday); tbMiddleName.Text = patientIdentification.middleName; tbName.Text = patientIdentification.name; tbSurname.Text = patientIdentification.surname; loaded = true; }
private void DischargeForm_Load(object sender, EventArgs e) { if (DesignMode) { return; } if (patient.dischargeTypeId == DischargeTypeId.None) { patient.dischargeTypeId = DischargeTypeId.Discharge; } DateTimePickerUtils.Init(dtpDischargeDate, patient.dischargeDate); using (GmConnection conn = App.CreateConnection()) { patientName = patient.GetPatientName(conn); cbDischargeType.Fill(conn, "select * from DischargeTypes", (int)patient.dischargeTypeId); } SetDischargeType(); loaded = true; }
private void AnalysisForm_Load(object sender, EventArgs e) { if (DesignMode) { return; } DateTimePickerUtils.Init(dtpRequestDate, analysis.requestDate); DateTimePickerUtils.Init(dtpExecutionDate, analysis.executionDate); AnalysisType analysisType; using (GmConnection conn = App.CreateConnection()) { analysisType = analysis.GetAnalysisType(conn); } base.Text = analysisType.name; HandbookGroup hg = App.Config.GetHandbookGroup(analysisType.handbookGroupId); if (hg != null) { ucHandbooksInfo.Init(analysis.analysisData, hg); } }
public void TypeDateWithClass(string date, string className) { DateTimePickerUtils.EnterDateByClassName(_driver, className, DateTime.Parse(date)); }