示例#1
0
        //private void ComboBox1SelectedIndexChanged(object sender, EventArgs e)
        //{

        //    if (comboBox1.SelectedIndex.ToString() == "1")
        //    {
        //        c1TrueDBGrid1.Splits[0].DisplayColumns[3].AllowFocus = true;
        //        lookUpEdit1.Enabled = true;
        //    }
        //    else
        //    {
        //        c1TrueDBGrid1.Splits[0].DisplayColumns[3].AllowFocus = false;
        //        lookUpEdit1.Enabled = false;
        //    }
        //}
#endregion
        #region toolbar 
       // private void posMenu1_ToolbarClick(object sender, EventArgs e)
       // {
            //if (posMenu1.ToolClicked == "Save")
            //{
            //    DoSave();
            //}
            //if (posMenu1.ToolClicked == "New")
            //{
            //    DoNew();
            //}
            //if (posMenu1.ToolClicked == "Delete")
            //{
            //    DeleteItem();
            //}
            //if (posMenu1.ToolClicked == "Hold")
            //{
            //    DoHold();
                
            //}
            //if (posMenu1.ToolClicked == "Analyse")
            //{
            //    DoAnalyse();
            //    ishold = true;
            //}
            //if (posMenu1.ToolClicked == "Notes")
            //{
            //    DoNotes();
            //}
       // }
        #endregion
        #region do items
        private void DoNotes()
        {
            string supid = "0";
            string supname = string.Empty;
            if (supplier.EditValue != null)
            {
                supid = supplier.EditValue.ToString();
                supname = supplier.Text;
            }
            var f = new Notes(supid,supname,"PO");
            f.ShowDialog();
        }
示例#2
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();
     }
 }
示例#3
0
 void DoNotes()
 {
     string supid = "0";
     string supname = string.Empty;
     if (warehouse.EditValue != null)
     {
         supid = warehouse.EditValue.ToString();
         supname = warehouse.Text;
     }
     var f = new Notes(supid, supname, 3);
     f.ShowDialog();
 }
示例#4
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();
             }
         }
 }
示例#5
0
 void DoNotes()
 {
     if (LookupSupplier.EditValue == null)
     {
         XtraMessageBox.Show("Please select the supplier", "POS", MessageBoxButtons.OK,
                             MessageBoxIcon.Information);
         return;
     }
     var f = new Notes(LookupSupplier.EditValue.ToString(), LookupSupplier.Text, 11);
     f.ShowDialog();
 }
示例#6
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();
         }
     }
 }
示例#7
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();
                }
            }

        }