protected override void ChangeBillSate(Utility.UBillState uBillState) { base.ChangeBillSate(uBillState); this.IsEnableYN = false; switch (uBillState) { case UBillState.View: break; case UBillState.New: this.IsEnableYN = true; this.IsCheckYNAll = true; break; case UBillState.Edit: this.IsEnableYN = true; break; case UBillState.Drop: break; default: break; } }
protected override void ChangeBillSate(Utility.UBillState uBillState) { base.ChangeBillSate(uBillState); this.IsEnableResetPassword = false; switch (uBillState) { case UBillState.View: this.IsEnableResetPassword = true;; break; } }
protected override void ChangeBillSate(Utility.UBillState uBillState) { base.ChangeBillSate(uBillState); this.IsEnablePCP = false; // this.IsEnableEditPriceContractSpCode = false; this.IsEnableEditPriceContractLens = false; this.IsEnableEditPriceContractFrame = false; this.IsEnableEditPriceContractFrameSet = false; this.IsEnableEditPriceContractProCost = false; // IsShowNewGroup = System.Windows.Visibility.Collapsed; switch (uBillState) { case UBillState.View: this.IsEnableEditPriceContractSpCode = true; this.IsEnableEditPriceContractLens = true; this.IsEnableEditPriceContractFrame = true; this.IsEnableEditPriceContractFrameSet = true; this.IsEnableEditPriceContractProCost = true; //if (!string.IsNullOrEmpty(this._DC.Checker)) //{ // this.IsEnableEditPriceContractSpCode = true; // this.IsEnableEditPriceContractLens = true; // this.IsEnableEditPriceContractFrame = true; // this.IsEnableEditPriceContractFrameSet = true; // this.IsEnableEditPriceContractProCost = true; //} break; case UBillState.Drop: break; case UBillState.New: IsShowNewGroup = System.Windows.Visibility.Visible; break; case UBillState.Edit: this.IsEnablePCP = true; break; } }
protected override void ChangeBillSate(Utility.UBillState uBillState) { base.ChangeBillSate(uBillState); switch (uBillState) { case Utility.UBillState.New: case Utility.UBillState.Drop: this.IsEnableExCludeProcess = false; this.IsEnableInCludeDepartment = false; this.IsEnableInCludeMnumber = false; break; default: this.IsEnableExCludeProcess = true; this.IsEnableInCludeDepartment = true; this.IsEnableInCludeMnumber = true; break; } }
protected override void ChangeBillSate(Utility.UBillState uBillState) { base.ChangeBillSate(uBillState); this.IsEnableEditCusCodeA = false; this.IsEnableEditCusCodeB = false; this.IsEnableEditCusCodeC = false; this.IsEnableEditCusCodeE = false; this.IsEnableEditCusCodeF = false; this.IsEnableEditCusCodeD = false; this.IsEnableEditMnumberA = false; this.IsEnableEditMnumberB = false; this.IsEnableEditMnumberC = false; this.IsEnableEditMnumberD = false; this.IsEnableEditFrame = false; this.IsEnableEditFrameSet = false; this.IsEnableEditProcessA = false; this.IsEnableEditProcessB = false; this.IsEnableEditProcessD = false; switch (uBillState) { case UBillState.View: try { switch (this.DContextMain.GetType().GetProperty("ContractType").GetValue(this.DContextMain, null).ToString().ToUpper()) { case "XSCA": this.IsEnableEditCusCodeA = true; this.IsEnableEditMnumberA = true; this.IsEnableEditProcessA = true; break; case "XSCB": this.IsEnableEditCusCodeB = true; this.IsEnableEditMnumberB = true; this.IsEnableEditProcessB = true; break; case "XSCC": this.IsEnableEditCusCodeC = true; this.IsEnableEditMnumberC = true; break; case "XSCD": this.IsEnableEditCusCodeD = true; this.IsEnableEditMnumberD = true; this.IsEnableEditProcessD = true; break; case "XSCE": this.IsEnableEditCusCodeE = true; this.IsEnableEditFrame = true; break; case "XSCF": this.IsEnableEditCusCodeF = true; this.IsEnableEditFrameSet = true; break; } } catch { } break; case UBillState.Drop: break; case UBillState.New: case UBillState.Edit: break; } }