public int insertCoreTechnique(TechniqueDTO newTechnique)
        {
            int flagInsert = new TECHNIQUETableAdapter().insertTechniqueQuery(
                newTechnique.IdDoctor,
                newTechnique.Price,
                newTechnique.IdPatient,
                newTechnique.DateTime
                );

            return(flagInsert);
        }
        public int updateCoreTechnique(TechniqueDTO originalTechnique)
        {
            int flagUpdate = new TECHNIQUETableAdapter().updateTechniqueQuery(
                originalTechnique.IdDoctor,
                originalTechnique.Price,
                originalTechnique.IdPatient,
                originalTechnique.DateTime,
                originalTechnique.IdTechnique
                );

            return(flagUpdate);
        }
        public int insertTechnique(
            string idDoctor,
            string price,
            string idPatient,
            string xtime)
        {
            TechniqueDTO currentTechniqueDatarow = new TechniqueDTO();

            currentTechniqueDatarow.IdDoctor  = Convert.ToInt32(idDoctor);
            currentTechniqueDatarow.Price     = Convert.ToDecimal(price);
            currentTechniqueDatarow.IdPatient = Convert.ToInt32(idPatient);
            currentTechniqueDatarow.DateTime  = Convert.ToDateTime(xtime);

            return(techniqueDal.insertCoreTechnique(currentTechniqueDatarow));
        }
Beispiel #4
0
 public update_technique_screen(TechniqueDTO _techniqueState)
 {
     this.techniqueState = _techniqueState;
     InitializeComponent();
 }