posupdateaccount.c

来自「一个不错的POS系统」· C语言 代码 · 共 34 行

C
34
字号
#include "posUpdateAccount.h"
#include "posDeleteAccount.h"
#include "posAddAccount.h"
#include "posLink.h"
int UpdateAccount()
{
	char * staff_id[10];
	staffinfo staffInfo;
	int m,n;
	while(1)
	{
		memset(staff_id,0,sizeof(staff_id));
		n=printDelteAccount(2,staff_id);
		if(n==1)
			return 1;
		QueryAccount(&staffInfo,staff_id);
		printAddaccount(2,&staffInfo);
		n=UpdateAcc(&staffInfo,staff_id);
		if(n==0)
		{
			m=MessageBox2("修改成功! 是否继续?");
			if(m==1)
				return 1;
		}
		else
		{
			m=MessageBox2("修改失败! 是否继续?");
			if(m==1)
				return 1;
		}
	}
	return 0;
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?