Exemplo n.º 1
0
        private WareHousePaper GetWareHousePaperEntity()
        {
            WareHousePaper whPaper = new WareHousePaper();

            whPaper.Id        = 0;
            whPaper.No        = txtNo.Text.Trim();
            whPaper.Note      = txtNote.Text.Trim();
            whPaper.Recipient = txtRecipient.Text.Trim();
            whPaper.ClinicId  = int.Parse(cbClinic.SelectedValue.ToString());
            whPaper.Deliverer = txtDeliverer.Text.Trim();
            whPaper.Type      = 1;
            return(whPaper);
        }
Exemplo n.º 2
0
 private void btnSave_Click(object sender, EventArgs e)
 {
     // Insert into WareHousePaper
     try
     {
         WareHousePaper whPaper = GetWareHousePaperEntity();
         repwhPaper.Insert(whPaper);
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 3
0
 private WareHousePaper GetWareHousePaperEntity()
 {
     WareHousePaper whPaper = new WareHousePaper();
     whPaper.Id = 0;
     whPaper.No = txtNo.Text.Trim();
     whPaper.Note = txtNote.Text.Trim();
     whPaper.Recipient = txtRecipient.Text.Trim();
     whPaper.ClinicId = int.Parse(cbClinic.SelectedValue.ToString());
     whPaper.Deliverer = txtDeliverer.Text.Trim();
     whPaper.Type = 1;
     return whPaper;
 }