Ejemplo n.º 1
0
 private void SupplierEditValueChanged(object sender, EventArgs e)
 {
     var row = supplier.Properties.GetDataSourceRowByKeyValue(supplier.EditValue) as DataRowView;
     if (row == null) return;
     var value = row["DUEDAYS"];
     if (!string.IsNullOrEmpty(value.ToString()))
         duedays.EditValue = value.ToString();
     else
         duedays.EditValue = 0;
     var f = new Notes();
     if (f.CheckNotesAvailable(supplier.EditValue.ToString(),"PO"))
     {
         var f1 = new Notes(supplier.EditValue.ToString(), supplier.Text,"PO");
         f1.ShowDialog();
     }
 }
Ejemplo n.º 2
0
 private void SupplierEditValueChanged(object sender, EventArgs e)
 {
     if (LookupSupplier.EditValue != null)
     {
         var row = LookupSupplier.Properties.GetDataSourceRowByKeyValue(LookupSupplier.EditValue) as DataRowView;
         if (row == null) return;
         supadd.EditValue = row["ADDRESS"].ToString();
         var f = new Notes();
         if (f.CheckNotesAvailable(LookupSupplier.EditValue.ToString(),11))
         {
             var f1 = new Notes(LookupSupplier.EditValue.ToString(), LookupSupplier.Text, 11);
             f1.ShowDialog();
         }
     }
 }
Ejemplo n.º 3
0
 private void supplier_EditValueChanged(object sender, EventArgs e)
 {
        
         if (supplier.EditValue != null)
         {
             var f = new Notes();
             if (f.CheckNotesAvailable(supplier.EditValue.ToString(), "PO"))
             {
                 var f1 = new Notes(supplier.EditValue.ToString(), supplier.Text, "PO");
                 f1.ShowDialog();
             }
         }
 }
Ejemplo n.º 4
0
        private void SupplierEditValueChanged(object sender, EventArgs e)
        {
            //if (SupplierValueChanged != null)
            //    SupplierValueChanged(sender, e);
            if (LookupSupplier.EditValue != null)
            {
                var row = LookupSupplier.Properties.GetDataSourceRowByKeyValue(LookupSupplier.EditValue) as DataRowView;
                if (row == null) return;
                var value = row["DUEDAYS"];
                if (!string.IsNullOrEmpty(value.ToString()))
                    duedays.EditValue = value.ToString();
                else
                    duedays.EditValue = 0;
                var f = new Notes();
                if (f.CheckNotesAvailable(LookupSupplier.EditValue.ToString(),_doctype?2:1))
                {
                    var f1 = new Notes(LookupSupplier.EditValue.ToString(), LookupSupplier.Text, _doctype ? 2 : 1);
                    f1.ShowDialog();
                }
            }

        }