Exemple #1
0
 private void btnDel_Click(object sender, EventArgs e)
 {
     if (jdgvPost.CurrentRow != null)
     {
         JSendExportInfo tmp = new JSendExportInfo();
         tmp.Code = Convert.ToInt32(jdgvPost.CurrentRow.Cells[0].Value);
         tmp.Delete();
         Fill();
     }
 }
Exemple #2
0
        private void btnAddFax_Click(object sender, EventArgs e)
        {
            JSendExportInfo tmp = new JSendExportInfo();

            tmp.Type        = ClassLibrary.Domains.JAutomation.JٍٍSendExportType.Fax;
            tmp.LetterCode  = _LetterCode;
            tmp.Description = "شماره فکس:" + txtFaxNo.Text + "\n" + "تماس گیرنده:" + cmbFaxSender.Text + "\n"
                              + "تاریخ:" + txtDateFax.Date.ToString() + "\n" + "ساعت:" + txtTimeFax.Text + "\n"
                              + "شرح ارسال:" + txtDescFax.Text;
            tmp.Insert();
            Fill();
        }
Exemple #3
0
        private void btnAddTah_Click(object sender, EventArgs e)
        {
            JSendExportInfo tmp = new JSendExportInfo();

            tmp.Type        = ClassLibrary.Domains.JAutomation.JٍٍSendExportType.Delivery;
            tmp.LetterCode  = _LetterCode;
            tmp.Description = "تحویل دهنده:" + cmbTahSender.Text + "\n" + "تحویل گیرنده:" + txtHozGir.Text + "\n"
                              + "تاریخ:" + txtTahDate.Date.ToString() + "\n" + "ساعت:" + txtTahTime.Text + "\n" +
                              "محل تحویل:" + txtHozMahal.Text + "\n"
                              + "شرح ارسال:" + txtHozDesc.Text;
            tmp.Insert();
            Fill();
        }
Exemple #4
0
        private void btnAddPost_Click(object sender, EventArgs e)
        {
            JSendExportInfo tmp = new JSendExportInfo();

            tmp.Type        = ClassLibrary.Domains.JAutomation.JٍٍSendExportType.Post;
            tmp.LetterCode  = _LetterCode;
            tmp.Description = "شماره قبض :" + txtGhabzNo.Text + "\n" + "تحویل دهنده:" + cmbPostTah.Text + "\n"
                              + "باجه پستی:" + txtPostBaje.Text + "\n" + "شرح ارسال:" + txtPostDesc.Text + "\n" + "تاریخ:"
                              + txtPostDate.Text.ToString() + "\n" + "مبلغ قبض :" + txtGhabzPrice.Text + "\n"
                              + "شرح ارسال:" + txtPostDesc.Text;
            tmp.Insert();
            Fill();
        }
Exemple #5
0
 private void Fill()
 {
     jdgvPost.DataSource = JSendExportInfo.GetDataTable(_LetterCode);
 }