好久没有这样分析需求了,最近一段时间老是在脑海中成图,分析,然后完成代码,再纠正需求,调试、修bug,这样的流程走多了,觉得没劲。今天买了本《大象》,重新修正了自己的一些不好的习惯,这一次,把过程记录了下来。
首先是原始需求。这是一个CRM系统的小需求分析,主要是在原合同部分加上一个发票申请和审核的流程。
一、原始需求描述如下:









二、用例分析:
第三步:类图分析:
第三眇:PDM模型:
第四步:生成数据SQL
第五步: 根据CodeSmith生成初始代码
这显然是一个简单的二层架构!!
第六步:预览下效果:
完成!
邀月注:这里省去了几个关键的步骤:比如权限配置、单元测试、性能测试、ajax处理等。