Beispiel #1
0
        private void cmdAddQty_Inquire(object sender, Fnd.Windows.Forms.FndCommandInquireEventArgs e)
        {
            Ifs.Fnd.Windows.Forms.FndCommand command = (Ifs.Fnd.Windows.Forms.FndCommand)sender;

            command.Enabled = false;

            command.Enabled = DataSourceCreateWindow(Ifs.Fnd.ApplicationForms.Const.METHOD_Inquire, (SalString)"dlgReceiveItem");
        }
 private void commandOk_Inquire(object sender, Fnd.Windows.Forms.FndCommandInquireEventArgs e)
 {
     Ifs.Fnd.Windows.Forms.FndCommand command = (Ifs.Fnd.Windows.Forms.FndCommand)sender;
     command.Enabled = false;
     if (!(dfnInventoryId.IsEmpty() || dfnInventoryLocationId.IsEmpty() || dfnPartId.IsEmpty()))
     {
         command.Enabled = true;
     }
 }
 private void cmdRelease_Inquire(object sender, Fnd.Windows.Forms.FndCommandInquireEventArgs e)
 {
     Ifs.Fnd.Windows.Forms.FndCommand command = (Ifs.Fnd.Windows.Forms.FndCommand)sender;
     command.Enabled = this.SendMessage(Const.PM_DataRecordStateEvent, Ifs.Fnd.ApplicationForms.Const.METHOD_Inquire, ((SalString)"Release").ToHandle());
 }
 private void commandCancel_Inquire(object sender, Fnd.Windows.Forms.FndCommandInquireEventArgs e)
 {
 }
 private void commandList_Inquire(object sender, Fnd.Windows.Forms.FndCommandInquireEventArgs e)
 {
     Ifs.Fnd.Windows.Forms.FndCommand command = (Ifs.Fnd.Windows.Forms.FndCommand)sender;
     hWndCurrentFocus = Sal.GetFocus();
     command.Enabled  = hWndCurrentFocus.SendMessage(Const.PM_DataItemLov, Const.METHOD_Inquire, 0);
 }