public bool Save_to_DB() { if (this.Paid_And_Locked.ValueChanged && this.Paid_And_Locked.Value) { this.Paid_And_Locked_Date.Value = DateTime.Now; } bool dataSaved_flag = false; if (this.pk_ID > 0) { dataSaved_flag = this.Update_to_DB(); } else { dataSaved_flag = this.Insert_to_DB(); } if (dataSaved_flag) { FX_Input fxi = FX_Input_master.Get_FXinput_ID(this.FX_InputID.Value); if (fxi != null && fxi.RecheckLocked()) { TaskDetailMaster.SetTaskCompleteness(20, fxi.FX_InputID.ToString(), "A", true); } } return(dataSaved_flag); }
public static void RecheckLocked_and_clearTask20A(int FX_InputID) { FX_Input fxi = FX_Input_master.Get_FXinput_ID(FX_InputID); if (fxi == null) { return; } if (fxi.RecheckLocked()) { TaskDetailMaster.SetTaskCompleteness(20, fxi.FX_InputID.ToString(), "A", true); } }