예제 #1
0
 public bool IsCommodityChecked(string commodityName)
 {
     //total
     if (commodityName == null)
     {
         if (TotalCommotidyGrid.IsNoEnabledCheckbox())
         {
             return(false);
         }
         else
         {
             return(true);
         }
     }
     else //specified commodity
     {
         if (CommodityGrid.IsRowChecked(2, commodityName, false))
         {
             return(true);
         }
         else
         {
             return(false);
         }
     }
 }
예제 #2
0
        public bool IsNoSingleCommodity()
        {
            TotalCommotidyGrid.CheckRowCheckbox(2, "[email protected]", false);
            JazzMessageBox.LoadingMask.WaitSubMaskLoading();
            TimeManager.MediumPause();

            return(CommodityGrid.IsNoRowOnGrid());
        }
예제 #3
0
        public void SelectCommodity(string commodityNames = null)
        {
            //total
            if (commodityNames == null)
            {
                TotalCommotidyGrid.CheckRowCheckbox(2, "[email protected]", false);
            }
            else //specified commodity
            {
                TotalCommotidyGrid.CheckRowCheckbox(2, "[email protected]", false);
                JazzMessageBox.LoadingMask.WaitSubMaskLoading();

                CommodityGrid.CheckRowCheckbox(2, commodityNames, false);
                //JazzMessageBox.LoadingMask.WaitLoading();
            }
        }
예제 #4
0
        public void DeSelectCommodity(string[] commodityNames)
        {
            //total
            if (commodityNames == null || commodityNames.Length <= 0)
            {
                TotalCommotidyGrid.UncheckRowCheckbox(2, "[email protected]", false);
            }
            else //specified commodity
            {
                TotalCommotidyGrid.UncheckRowCheckbox(2, "[email protected]", false);
                //JazzMessageBox.LoadingMask.WaitSubMaskLoading();
                TimeManager.ShortPause();

                foreach (var commodity in commodityNames)
                {
                    CommodityGrid.UncheckRowCheckbox(2, commodity, false);
                    //JazzMessageBox.LoadingMask.WaitLoading();
                }
            }
        }