public void GYInitCard(string cardid,int alarm,int constant,int amount,int metertype,int usertype,double money,
double pricenow,int pricemodify,double pricenew,string pricedate,int secondalarm,int newremnant,int consumerlevel,int xs,string selldate) {
//工业无线表
if (metertype == 14 || metertype == 16)
{
//日期转换格式:yyyymmdd
pricedate = pricedate.Substring(0, 10);
pricedate = pricedate.Replace("-", "");
//截取卡号,后8为当做实际卡号
var cardlasteight = cardid.Substring(2, 10);
var cardfirsttwo = Int32.Parse(cardid.Substring(0, 2));
pricenow = pricenow * 100;
money = money * 100;
//调用民用发卡,告警气量0,用户类型0,修改单价标记 1
var wxRen = MYInitCard(cardlasteight, 0, cardfirsttwo, amount, metertype, 0, money, pricenow, 1, pricenow, pricedate, selldate);
if (wxRen) {
State = State.End;
}
else {
State = State.Error;
Error = "发卡不成功!";
}
}
//cpu卡
else {
CpuInit(cardid, alarm, secondalarm, newremnant, consumerlevel, usertype, pricedate, xs, amount, selldate);
}
}