private void button1_Click(object sender, EventArgs e) //修改 { if (this.yTextBox_XSWS.Text.Trim().Length >= 1) { int a; if (!int.TryParse(this.yTextBox_XSWS.Text, out a)) { WJs.alert("小数位数必须是大于或等于零的整数"); this.yTextBox_XSWS.Focus(); return; } } if (this.yTextBox_CardsLong.Text.Trim().Length >= 1) { int a; if (!int.TryParse(this.yTextBox_CardsLong.Text, out a)) { WJs.alert("卡号长度必须是大于或等于零的整数"); this.yTextBox_CardsLong.Focus(); return; } } ActionLoad ld = ActionLoad.Conn(); ld.Action = "LKWZSVR.lkeq.JiChuDictionary.SysValue"; ld.Sql = "Add"; if (mzd == null || mzd.Rows.Count == 0) { ld.SetParams(new object[] { 2200, "设备维修是否采用多个步骤", this.ytComboBox_MoreStype.SelectedIndex.ToString(), "0:单步维修 1:多步维修 “报修→维修→交付”", His.his.Choscode, 2201, "是否设备领用时建卡", this.ytComboBox_BuildCard.SelectedIndex.ToString(), "0:否 1:是", His.his.Choscode, 2202, "是否一台设备建立一张卡片", this.ytComboBox_OnlyOneCard.SelectedIndex.ToString(), "0:否 1:是", His.his.Choscode, 2203, "小数位数", this.yTextBox_XSWS.Text, "设定在系统中显示单价、金额信息时,所使用的小数位数,默认是2", His.his.Choscode, 2204, "是否使用千分位符号", this.ytComboBox_UseQian.SelectedIndex, "0:不使用 1:使用", His.his.Choscode, 2205, "建卡时,是否自动启用设备", this.ytComboBox_AutoUse.SelectedIndex, "0:不启用 1:启用", His.his.Choscode, 2206, "设备卡的卡号长度", this.yTextBox_CardsLong.Text, "设置设备卡片的卡号长度,不含前缀字符的数字长度", His.his.Choscode, 2207, "是否允许负库存出库", this.ytComboBox_AllowDropOut.SelectedIndex, "0:不允许 1:允许", His.his.Choscode }); ld.Sql = "Add"; } else { ld.SetParams(new object[] { this.ytComboBox_MoreStype.SelectedIndex.ToString(), His.his.Choscode, this.ytComboBox_BuildCard.SelectedIndex.ToString(), His.his.Choscode, this.ytComboBox_OnlyOneCard.SelectedIndex.ToString(), His.his.Choscode, this.yTextBox_XSWS.Text, His.his.Choscode, this.ytComboBox_UseQian.SelectedIndex, His.his.Choscode , this.ytComboBox_AutoUse.SelectedIndex, His.his.Choscode, this.yTextBox_CardsLong.Text, His.his.Choscode, this.ytComboBox_AllowDropOut.SelectedIndex, His.his.Choscode }); ld.Sql = "Update"; } ld.ServiceLoad += new YtClient.data.events.LoadEventHandle(ld_ServiceLoad); ld.Post(); }
private void reLoad() { ActionLoad ld = ActionLoad.Conn(); ld.Action = "Find"; ld.Sql = "EQFindSysValue"; ld.SetParams(new object[] { His.his.Choscode }); ld.ServiceLoad += new YtClient.data.events.LoadEventHandle(ld_ServiceLoadcSF); ld.Post(); }
/// <summary> /// 获取最新票据号 /// </summary> /// <param name="fptype">票据类型: 1-门诊 2-住院 3-预交款</param> /// <returns>票据号码</returns> public static string GetFPcode(short fptype) { if (His.his.IsFpPj) { ActionLoad dl = ActionLoad.Conn(); dl.Action = "Find"; dl.Sql = "sys_getMaxFP"; dl.SetParams(new object[] { His.his.Choscode, fptype, His.his.UserId }); string code = dl.Post().GetValue(); if (code != null) { return(code); } else { return(""); } } else { return(""); } }