protected override void SetValue() { //获取本次结算信息 string[] Fhinfo = BLL.Accounts.GetFHInfo("003", "").Split(','); txtMemberCount.Value = Fhinfo[3]; txtTotalMoney.Value = Fhinfo[0]; txtDayLineLnterest.Value = Fhinfo[1]; txtHonestyLiXi.Value = Fhinfo[2]; //日利息 //txtDayLineLnterestPercent.Value = BLL.MMMConfig.Model.DayLineLnterest.ToString(); //txtHonestyLiXiPercent.Value = BLL.MMMConfig.Model.HonestyLiXi.ToString(); //获取上次结算信息 Model.Accounts amodel = BLL.Accounts.GetTopModel("003", ""); if (amodel != null) { lbAccountsDate.Value = amodel.AccountsDate.ToString("yyyy-MM-dd HH:mm:ss"); lbFHCount.Value = amodel.FHCount.ToString(); lbIsAuto.Value = amodel.IsAuto ? "自动" : "手动"; lbTotalFHMoney.Value = amodel.TotalFHMoney.ToString(); } }
public static Hashtable BDInsert(Model.Accounts model, Hashtable MyHs) { BLL.ChangeMoney.FHChangeTran(model, MyHs); model.IfAccount = true; model.AccountsDate = DateTime.Now; DAL.Accounts.Insert(model, MyHs); return(MyHs); }
public static bool AutoFH() { Model.Accounts model = new Model.Accounts(); model.CreateDate = DateTime.Now; model.IsAuto = true; model.PCode = "003"; if (BLL.Configuration.Model.AutoDFH) { return(BLL.Accounts.Insert(model)); } return(false); }
protected override void SetValue() { txtPCodeStr.Value = "鸿运宝结算"; string[] Fhinfo = BLL.Accounts.GetFHInfo("007", "").Split(','); txtFHCount.Value = Fhinfo[0]; //txtTotalFHMoney.Value = (int.Parse(txtFHCount.Value) * BLL.Configuration.Model.JJBEveryDayMoney).ToString(); Model.Accounts amodel = BLL.Accounts.GetTopModel("007", ""); if (amodel != null) { lbAccountsDate.Value = amodel.AccountsDate.ToString("yyyy-MM-dd HH:mm:ss"); lbFHCount.Value = amodel.FHCount.ToString(); lbIsAuto.Value = amodel.IsAuto ? "自动" : "手动"; lbTotalFHMoney.Value = amodel.TotalFHMoney.ToString(); } }