public static String GetCSVValue(SelectStatuses item) { switch (item) { case SelectStatuses.PopRemove: return("POPを外す"); case SelectStatuses.Transfer: return("補充依頼する"); case SelectStatuses.Display: return("陳列在庫チェック"); case SelectStatuses.PopCreate: return("POP出力"); case SelectStatuses.OPIncrease: return("発注点変更"); case SelectStatuses.OPDecrease: return("発注点変更"); default: return(String.Empty); } }
public static bool ItemStatusEnable(SelectStatuses select, ItemStatuses item) { switch (select) { case SelectStatuses.PopRemove: return(item == ItemStatuses.NotArrival); case SelectStatuses.Transfer: return(item == ItemStatuses.NotArrival); case SelectStatuses.Display: return(item == ItemStatuses.OnStock); case SelectStatuses.PopCreate: return(item == ItemStatuses.OnStock); case SelectStatuses.OPIncrease: return(item == ItemStatuses.OnStock || item == ItemStatuses.OnArrival); case SelectStatuses.OPDecrease: return(item == ItemStatuses.OnStock); default: return(true); } }
public static String GetDispName(SelectStatuses type) { switch (type) { case SelectStatuses.PopRemove: return("POPを外す"); case SelectStatuses.Transfer: return("補充依頼する"); case SelectStatuses.Display: return("陳列・在庫チェック"); case SelectStatuses.PopCreate: return("POP出力"); case SelectStatuses.OPIncrease: return("発点増申請"); case SelectStatuses.OPDecrease: return("発点減申請"); default: return("何もしない"); } }
public static String GetCSVBikoValue(SelectStatuses item) { switch (item) { case SelectStatuses.OPIncrease: return("増やす"); case SelectStatuses.OPDecrease: return("減らす"); default: return(String.Empty); } }
public SelectStatus(SelectStatuses types) { this.SelectStatuses = types; }
public static void SetEnable(Button button, SelectStatuses select, ItemStatuses item) { button.IsEnabled = ItemStatusEnable(select, item); }
public static void SetText(Button button, SelectStatuses select) { button.Text = GetDispName(select); }